Files
lodash/.internal/getAllKeys.js
John-David Dalton 6cb3460fce Remove semicolons.
2017-02-05 22:22:04 -08:00

17 lines
458 B
JavaScript

import getSymbols from './getSymbols.js'
import keys from '../keys.js'
/**
* Creates an array of own 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 getAllKeys(object) {
const result = keys(object)
return Array.isArray(object) ? result : arrayPush(result, getSymbols(object))
}
export default getAllKeys