mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove remaining rest helper use.
This commit is contained in:
5
bind.js
5
bind.js
@@ -1,4 +1,3 @@
|
||||
import baseRest from './_baseRest.js';
|
||||
import createWrap from './_createWrap.js';
|
||||
import getHolder from './_getHolder.js';
|
||||
import replaceHolders from './_replaceHolders.js';
|
||||
@@ -42,7 +41,7 @@ const WRAP_PARTIAL_FLAG = 32;
|
||||
* bound('hi');
|
||||
* // => 'hi fred!'
|
||||
*/
|
||||
const bind = baseRest((func, thisArg, partials) => {
|
||||
function bind(func, thisArg, ...partials) {
|
||||
let holders;
|
||||
let bitmask = WRAP_BIND_FLAG;
|
||||
if (partials.length) {
|
||||
@@ -50,7 +49,7 @@ const bind = baseRest((func, thisArg, partials) => {
|
||||
bitmask |= WRAP_PARTIAL_FLAG;
|
||||
}
|
||||
return createWrap(func, bitmask, thisArg, partials, holders);
|
||||
});
|
||||
}
|
||||
|
||||
// Assign default placeholders.
|
||||
bind.placeholder = {};
|
||||
|
||||
Reference in New Issue
Block a user