at

Object
since 1.0.0

Arguments

  • Object The object to iterate over.
  • ...(string|string[]) The property paths to pick.

Returns

Array the picked values.

Creates an array of values corresponding to paths of object.

Example of Lodash _.at

var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };

_.at(object, ['a[0].b.c', 'a[1]']);
// => [3, 4]