Remove remaining rest helper use.

This commit is contained in:
John-David Dalton
2017-01-09 15:36:35 -08:00
parent 648722f1a6
commit aacfefc752
25 changed files with 53 additions and 165 deletions

View File

@@ -1,4 +1,3 @@
import baseRest from './_baseRest.js';
import isIterateeCall from './_isIterateeCall.js';
/**
@@ -9,7 +8,7 @@ import isIterateeCall from './_isIterateeCall.js';
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return baseRest((object, sources) => {
return (object, ...sources) => {
let index = -1;
let length = sources.length;
let customizer = length > 1 ? sources[length - 1] : undefined;
@@ -31,7 +30,7 @@ function createAssigner(assigner) {
}
}
return object;
});
};
}
export default createAssigner;