1.0.0 • Published 7 years ago
incomplete-symbol v1.0.0
incomplete-symbol

Custom-remove features of a
Symbolimplementation.
This is useful when simulating the incomplete Symbol implementations available in some of today's modern web browsers.
Installation
Node.js >= 8 is required. To install, type this at the command line:
npm install incomplete-symbolUsage
const customizeSymbol = require('incomplete-symbol');
const exclusions = ['description', 'toStringTag'];
const IncompleteSymbol = customizeSymbol(exclusions);
const symbol = new IncompleteSymbol('foo');
console.log(IncompleteSymbol.toStringTag); //-> undefined
console.log(symbol.description); //-> undefinedArguments
exclusions
Type: Array
Default value: []
The output Symbol function and any instances created with it will not expose each listed property/method.
1.0.0
7 years ago