parcoursup/node_modules/loupe/lib/symbol.js

7 lines
197 B
JavaScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
export default function inspectSymbol(value) {
if ('description' in Symbol.prototype) {
return value.description ? `Symbol(${value.description})` : 'Symbol()'
}
return value.toString()
}