UNPKG

inspect-custom-symbol

Version:

Use util.inspect.custom without having to browserify util in the browser

8 lines (5 loc) 114 B
var custom = require('./') var foo = { [custom]: () => 'totally foo' } console.log(foo) // prints totally foo