how to get to array inside object javascriptt code example Example: how to get array from object in javascript let result = objArray.map(({ foo }) => foo)