Sha256: 04a914904557bed76d2a097bbcaa88fc2c125eb62e5e5de1712d2b9686aa6acc
Contents?: true
Size: 695 Bytes
Versions: 167
Compression:
Stored size: 695 Bytes
Contents
var isFunction = require('../lang/isFunction'); /** * The base implementation of `_.functions` which creates an array of * `object` function property names filtered from those provided. * * @private * @param {Object} object The object to inspect. * @param {Array} props The property names to filter. * @returns {Array} Returns the new array of filtered property names. */ function baseFunctions(object, props) { var index = -1, length = props.length, resIndex = -1, result = []; while (++index < length) { var key = props[index]; if (isFunction(object[key])) { result[++resIndex] = key; } } return result; } module.exports = baseFunctions;
Version data entries
167 entries across 87 versions & 9 rubygems