mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
20 lines
612 B
JavaScript
20 lines
612 B
JavaScript
![]() |
var constant = require('../utility/constant'),
|
||
|
isNative = require('../lang/isNative'),
|
||
|
toObject = require('./toObject');
|
||
|
|
||
|
/** Native method references. */
|
||
|
var getOwnPropertySymbols = isNative(getOwnPropertySymbols = Object.getOwnPropertySymbols) && getOwnPropertySymbols;
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of symbols.
|
||
|
*/
|
||
|
var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) {
|
||
|
return getOwnPropertySymbols(toObject(object));
|
||
|
};
|
||
|
|
||
|
module.exports = getSymbols;
|