Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_baseGetAllKeys.js 739B

1234567891011121314151617181920
  1. var arrayPush = require('./_arrayPush'),
  2. isArray = require('./isArray');
  3. /**
  4. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  5. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  6. * symbols of `object`.
  7. *
  8. * @private
  9. * @param {Object} object The object to query.
  10. * @param {Function} keysFunc The function to get the keys of `object`.
  11. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  12. * @returns {Array} Returns the array of property names and symbols.
  13. */
  14. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  15. var result = keysFunc(object);
  16. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  17. }
  18. module.exports = baseGetAllKeys;