mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Use more ES2015.
This commit is contained in:
@@ -11,9 +11,7 @@ import isFunction from './isFunction.js';
|
||||
* @returns {Array} Returns the function names.
|
||||
*/
|
||||
function baseFunctions(object, props) {
|
||||
return arrayFilter(props, function(key) {
|
||||
return isFunction(object[key]);
|
||||
});
|
||||
return arrayFilter(props, key => isFunction(object[key]));
|
||||
}
|
||||
|
||||
export default baseFunctions;
|
||||
|
||||
Reference in New Issue
Block a user