mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Cleanup _.at and add build tests.
Former-commit-id: 7648376e1ef447ae83d621b449b73acec355bb67
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
var collectionsMethods = [
|
||||
'all',
|
||||
'any',
|
||||
'at',
|
||||
'collect',
|
||||
'contains',
|
||||
'countBy',
|
||||
@@ -249,6 +250,7 @@
|
||||
|
||||
/** List of methods used by Underscore */
|
||||
var underscoreMethods = _.without.apply(_, [allMethods].concat([
|
||||
'at',
|
||||
'bindKey',
|
||||
'cloneDeep',
|
||||
'forIn',
|
||||
@@ -386,6 +388,10 @@
|
||||
func(array);
|
||||
func(object);
|
||||
}
|
||||
else if (methodName == 'at') {
|
||||
func(array, 0, 2);
|
||||
func(object, 'a', 'c');
|
||||
}
|
||||
else if (methodName == 'invoke') {
|
||||
func(array, 'slice');
|
||||
func(object, 'toFixed');
|
||||
|
||||
Reference in New Issue
Block a user