CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_getSymbolsIn.js26 linesDownload Raw Back to lodash-es
1import arrayPush from './_arrayPush.js';2import getPrototype from './_getPrototype.js';3import getSymbols from './_getSymbols.js';4import stubArray from './stubArray.js';5 6/* Built-in method references for those with the same name as other `lodash` methods. */7var nativeGetSymbols = Object.getOwnPropertySymbols;8 9/**10 * Creates an array of the own and inherited enumerable symbols of `object`.11 *12 * @private13 * @param {Object} object The object to query.14 * @returns {Array} Returns the array of symbols.15 */16var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {17  var result = [];18  while (object) {19    arrayPush(result, getSymbols(object));20    object = getPrototype(object);21  }22  return result;23};24 25export default getSymbolsIn;26 
basant307/AI_Governance_Project · CoolFace