mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
var arrayEach = require('./_arrayEach'),
|
||||
baseFlatten = require('./_baseFlatten'),
|
||||
bind = require('./bind'),
|
||||
rest = require('./rest');
|
||||
rest = require('./rest'),
|
||||
toKey = require('./_toKey');
|
||||
|
||||
/**
|
||||
* Binds methods of an object to the object itself, overwriting the existing
|
||||
@@ -31,6 +32,7 @@ var arrayEach = require('./_arrayEach'),
|
||||
*/
|
||||
var bindAll = rest(function(object, methodNames) {
|
||||
arrayEach(baseFlatten(methodNames, 1), function(key) {
|
||||
key = toKey(key);
|
||||
object[key] = bind(object[key], object);
|
||||
});
|
||||
return object;
|
||||
|
||||
Reference in New Issue
Block a user