Bump to v4.0.0.

This commit is contained in:
John-David Dalton
2015-08-24 10:34:23 -07:00
parent 4ef16c96e5
commit 0646bacd86
665 changed files with 24828 additions and 19696 deletions

View File

@@ -1,4 +1,5 @@
var isFunction = require('../lang/isFunction');
var arrayFilter = require('./arrayFilter'),
isFunction = require('../isFunction');
/**
* The base implementation of `_.functions` which creates an array of
@@ -10,18 +11,9 @@ var isFunction = require('../lang/isFunction');
* @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]);
});
}
module.exports = baseFunctions;