UNPKG

@observablehq/inspector

Version:

[![Node CI](https://github.com/observablehq/inspector/workflows/Node%20CI/badge.svg)](https://github.com/observablehq/inspector/actions?workflow=Node+CI)

7 lines (5 loc) 210 B
const symbolToString = Symbol.prototype.toString; // Symbols do not coerce to strings; they must be explicitly converted. export default function formatSymbol(symbol) { return symbolToString.call(symbol); }