JSPM

symbol.inspect

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 110090
  • Score
    100M100P100Q159139F
  • License ISC

<symbol> that can be used to declare custom inspect functions.

Package Exports

  • symbol.inspect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (symbol.inspect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

symbol.inspect

<symbol> that can be used to declare custom inspect functions.

install

npm install symbol.inspect
import SymbolInspect = require('symbol.inspect');

class A
{
    [SymbolInspect]()
    {
        return 'my custom inspect display'
    }
}

console.log(new A);