UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

17 lines (12 loc) 381 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const getSymbols = require('./getSymbols.js'); function getSymbolsIn(object) { const result = []; while (object) { result.push(...getSymbols.getSymbols(object)); object = Object.getPrototypeOf(object); } return result; } exports.getSymbolsIn = getSymbolsIn;