Simplify baseFunctions.

This commit is contained in:
John-David Dalton
2015-08-28 01:35:50 -07:00
parent 5a5e0363c2
commit fcbe4620cd

View File

@@ -1906,18 +1906,9 @@
* @returns {Array} Returns the new array of filtered property names. * @returns {Array} Returns the new array of filtered property names.
*/ */
function baseFunctions(object, props) { function baseFunctions(object, props) {
var index = -1, return arrayFilter(props, function(key) {
length = props.length, return isFunction(object[key]);
resIndex = -1, });
result = [];
while (++index < length) {
var key = props[index];
if (isFunction(object[key])) {
result[++resIndex] = key;
}
}
return result;
} }
/** /**