1 var isFunction = require('../lang/isFunction');
4 * The base implementation of `_.functions` which creates an array of
5 * `object` function property names filtered from those provided.
8 * @param {Object} object The object to inspect.
9 * @param {Array} props The property names to filter.
10 * @returns {Array} Returns the new array of filtered property names.
12 function baseFunctions(object, props) {
14 length = props.length,
18 while (++index < length) {
19 var key = props[index];
20 if (isFunction(object[key])) {
21 result[++resIndex] = key;
27 module.exports = baseFunctions;