mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
18 lines
491 B
JavaScript
18 lines
491 B
JavaScript
import getSymbolsIn from './getSymbolsIn.js'
|
|
import keysIn from '../keysIn.js'
|
|
|
|
/**
|
|
* Creates an array of own and inherited enumerable property names and
|
|
* symbols of `object`.
|
|
*
|
|
* @private
|
|
* @param {Object} object The object to query.
|
|
* @returns {Array} Returns the array of property names and symbols.
|
|
*/
|
|
function getAllKeysIn(object) {
|
|
const result = keysIn(object)
|
|
return Array.isArray(object) ? result : arrayPush(result, getSymbolsIn(object))
|
|
}
|
|
|
|
export default getAllKeysIn
|