mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.13.0.
This commit is contained in:
9
at.js
9
at.js
@@ -1,6 +1,6 @@
|
||||
import baseAt from './_baseAt';
|
||||
import baseFlatten from './_baseFlatten';
|
||||
import rest from './rest';
|
||||
import baseAt from './_baseAt.js';
|
||||
import baseFlatten from './_baseFlatten.js';
|
||||
import rest from './rest.js';
|
||||
|
||||
/**
|
||||
* Creates an array of values corresponding to `paths` of `object`.
|
||||
@@ -18,9 +18,6 @@ import rest from './rest';
|
||||
*
|
||||
* _.at(object, ['a[0].b.c', 'a[1]']);
|
||||
* // => [3, 4]
|
||||
*
|
||||
* _.at(['a', 'b', 'c'], 0, 2);
|
||||
* // => ['a', 'c']
|
||||
*/
|
||||
var at = rest(function(object, paths) {
|
||||
return baseAt(object, baseFlatten(paths, 1));
|
||||
|
||||
Reference in New Issue
Block a user