mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Minor nit, add default greeting to bind benchmark. [ci skip]
This commit is contained in:
@@ -310,7 +310,7 @@
|
|||||||
var thisArg = { "name": "fred" };\
|
var thisArg = { "name": "fred" };\
|
||||||
\
|
\
|
||||||
var func = function(greeting, punctuation) {\
|
var func = function(greeting, punctuation) {\
|
||||||
return greeting + " " + this.name + (punctuation || ".");\
|
return (greeting || "hi") + " " + this.name + (punctuation || ".");\
|
||||||
};\
|
};\
|
||||||
\
|
\
|
||||||
var _boundNormal = _.bind(func, thisArg),\
|
var _boundNormal = _.bind(func, thisArg),\
|
||||||
|
|||||||
Reference in New Issue
Block a user