lodash pick object fields from array. You could do: var mapped = _.map(results, _.partialRight(_.pick, ['_id', 'info', 'type', 'date', 'createdBy']));.
確定! 回上一頁