mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v3.0.0.
This commit is contained in:
23
object/functions.js
Normal file
23
object/functions.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import baseFunctions from '../internal/baseFunctions';
|
||||
import keysIn from './keysIn';
|
||||
|
||||
/**
|
||||
* Creates an array of function property names from all enumerable properties,
|
||||
* own and inherited, of `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias methods
|
||||
* @category Object
|
||||
* @param {Object} object The object to inspect.
|
||||
* @returns {Array} Returns the new array of property names.
|
||||
* @example
|
||||
*
|
||||
* _.functions(_);
|
||||
* // => ['all', 'any', 'bind', ...]
|
||||
*/
|
||||
function functions(object) {
|
||||
return baseFunctions(object, keysIn(object));
|
||||
}
|
||||
|
||||
export default functions;
|
||||
Reference in New Issue
Block a user