_baseKeys.js 475 B

12345678910111213141516
  1. /* Built-in method references for those with the same name as other `lodash` methods. */
  2. var nativeKeys = Object.keys;
  3. /**
  4. * The base implementation of `_.keys` which doesn't skip the constructor
  5. * property of prototypes or treat sparse arrays as dense.
  6. *
  7. * @private
  8. * @param {Object} object The object to query.
  9. * @returns {Array} Returns the array of property names.
  10. */
  11. function baseKeys(object) {
  12. return nativeKeys(Object(object));
  13. }
  14. module.exports = baseKeys;