incomplete-symbol
v2.0.0
Published
Custom-remove features of a Symbol implementation.
Readme
incomplete-symbol

Custom-remove features of a
Symbolimplementation.
This is useful when simulating the incomplete Symbol implementations that were available in some web browsers in 2019.
[!NOTE]
If you need to support older versions of Node.js (going back to
8.x), use1.xof this package.
Install
npm install incomplete-symbolUsage
import customizeSymbol from 'incomplete-symbol';
const exclusions = ['description', 'toStringTag'];
const IncompleteSymbol = customizeSymbol(exclusions);
const symbol = IncompleteSymbol('foo');
console.log(IncompleteSymbol.toStringTag); //-> undefined
console.log(symbol.description); //-> undefined