diff --git a/lodash.js b/lodash.js index c98d7caca..261a2debb 100644 --- a/lodash.js +++ b/lodash.js @@ -1906,18 +1906,9 @@ * @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; + return arrayFilter(props, function(key) { + return isFunction(object[key]); + }); } /**