1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import arrayEach from './_arrayEach.js';
- import baseAssignValue from './_baseAssignValue.js';
- import bind from './bind.js';
- import flatRest from './_flatRest.js';
- import toKey from './_toKey.js';
- var bindAll = flatRest(function(object, methodNames) {
- arrayEach(methodNames, function(key) {
- key = toKey(key);
- baseAssignValue(object, key, bind(object[key], object));
- });
- return object;
- });
- export default bindAll;
|