Sha256: 2d1b73d529778721dc9bc9cb4f624e1fff99c02361792d36d43af17b45c952d3
Contents?: true
Size: 708 Bytes
Versions: 14
Compression:
Stored size: 708 Bytes
Contents
var createWrapper = require('./createWrapper'); /** Used to compose bitmasks for wrapper metadata. */ var BIND_FLAG = 1; /** * The base implementation of `_.bindAll` without support for individual * method name arguments. * * @private * @param {Object} object The object to bind and assign the bound methods to. * @param {string[]} methodNames The object method names to bind. * @returns {Object} Returns `object`. */ function baseBindAll(object, methodNames) { var index = -1, length = methodNames.length; while (++index < length) { var key = methodNames[index]; object[key] = createWrapper(object[key], BIND_FLAG, object); } return object; } module.exports = baseBindAll;
Version data entries
14 entries across 7 versions & 1 rubygems