Add placeholder support to _.bind, _.partial, and _.partialRight.

This commit is contained in:
John-David Dalton
2014-02-14 00:40:43 -08:00
parent 9cc06a94ec
commit ee4d9890e7
9 changed files with 592 additions and 224 deletions

View File

@@ -609,7 +609,7 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.bind`')
Benchmark.Suite('`_.bind` (slow path)')
.add(buildName, {
'fn': 'lodash.bind(func, { "name": "fred" })',
'teardown': 'function bind(){}'
@@ -1508,7 +1508,7 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.partial`')
Benchmark.Suite('`_.partial` (slow path)')
.add(buildName, {
'fn': 'lodash.partial(func, "hi")',
'teardown': 'function partial(){}'