getSymbols.js 374 B

123456789101112131415
  1. /** Built-in value references. */
  2. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  3. /**
  4. * Creates an array of the own symbol properties of `object`.
  5. *
  6. * @private
  7. * @param {Object} object The object to query.
  8. * @returns {Array} Returns the array of symbols.
  9. */
  10. var getSymbols = getOwnPropertySymbols || function() {
  11. return [];
  12. };
  13. export default getSymbols;