Add _.sample.

Former-commit-id: 00e27cca2a65e1310b26904173ffec18aa484e48
This commit is contained in:
John-David Dalton
2013-08-16 00:26:41 -07:00
parent 96605766bb
commit 425499b3aa
12 changed files with 530 additions and 296 deletions

View File

@@ -201,7 +201,8 @@
'rest': ['createCallback', 'slice'],
'result': ['isFunction'],
'runInContext': ['defaults', 'pick'],
'shuffle': ['forEach'],
'sample': ['random', 'shuffle', 'toArray'],
'shuffle': ['forEach', 'random'],
'size': ['keys'],
'some': ['baseEach', 'createCallback', 'isArray'],
'sortBy': ['compareAscending', 'createCallback', 'forEach', 'getObject', 'releaseObject'],
@@ -380,6 +381,7 @@
'reduce',
'reduceRight',
'reject',
'sample',
'shuffle',
'size',
'some',
@@ -584,6 +586,7 @@
'pull',
'remove',
'runInContext',
'sample',
'transform',
'wrapperToString'
];