Cleanup _.at and add build tests.

Former-commit-id: 7648376e1ef447ae83d621b449b73acec355bb67
This commit is contained in:
John-David Dalton
2012-12-18 20:28:34 -08:00
parent 680798c28f
commit bfea443e55
6 changed files with 178 additions and 113 deletions

View File

@@ -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');