mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v3.8.0.
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
var baseAt = require('../internal/baseAt'),
|
||||
baseFlatten = require('../internal/baseFlatten'),
|
||||
getLength = require('../internal/getLength'),
|
||||
isLength = require('../internal/isLength'),
|
||||
restParam = require('../function/restParam'),
|
||||
toIterable = require('../internal/toIterable');
|
||||
restParam = require('../function/restParam');
|
||||
|
||||
/**
|
||||
* Creates an array of elements corresponding to the given keys, or indexes,
|
||||
@@ -26,10 +23,6 @@ var baseAt = require('../internal/baseAt'),
|
||||
* // => ['barney', 'pebbles']
|
||||
*/
|
||||
var at = restParam(function(collection, props) {
|
||||
var length = collection ? getLength(collection) : 0;
|
||||
if (isLength(length)) {
|
||||
collection = toIterable(collection);
|
||||
}
|
||||
return baseAt(collection, baseFlatten(props));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user