mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -29,13 +29,11 @@ import isIndex from './_isIndex.js';
|
||||
* console.log(pulled);
|
||||
* // => ['b', 'd']
|
||||
*/
|
||||
var pullAt = flatRest(function(array, indexes) {
|
||||
var pullAt = flatRest((array, indexes) => {
|
||||
var length = array == null ? 0 : array.length,
|
||||
result = baseAt(array, indexes);
|
||||
|
||||
basePullAt(array, arrayMap(indexes, function(index) {
|
||||
return isIndex(index, length) ? +index : index;
|
||||
}).sort(compareAscending));
|
||||
basePullAt(array, arrayMap(indexes, index => isIndex(index, length) ? +index : index).sort(compareAscending));
|
||||
|
||||
return result;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user