1 var arrayFilter = require('./_arrayFilter'),
2 stubArray = require('./stubArray');
4 /** Used for built-in method references. */
5 var objectProto = Object.prototype;
7 /** Built-in value references. */
8 var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10 /* Built-in method references for those with the same name as other `lodash` methods. */
11 var nativeGetSymbols = Object.getOwnPropertySymbols;
14 * Creates an array of the own enumerable symbols of `object`.
17 * @param {Object} object The object to query.
18 * @returns {Array} Returns the array of symbols.
20 var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
24 object = Object(object);
25 return arrayFilter(nativeGetSymbols(object), function(symbol) {
26 return propertyIsEnumerable.call(object, symbol);
30 module.exports = getSymbols;