UNPKG

517 BJavaScriptView Raw
1var overArg = require('./_overArg'),
2 stubArray = require('./stubArray');
3
4/* Built-in method references for those with the same name as other `lodash` methods. */
5var nativeGetSymbols = Object.getOwnPropertySymbols;
6
7/**
8 * Creates an array of the own enumerable symbols of `object`.
9 *
10 * @private
11 * @param {Object} object The object to query.
12 * @returns {Array} Returns the array of symbols.
13 */
14var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
15
16module.exports = getSymbols;