incomplete-symbol
Custom-remove features of a Symbol implementation.
Last updated 3 years ago by stevenvachon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install incomplete-symbol 
SYNC missed versions from official npm registry.

incomplete-symbol NPM Version Build Status Coverage Status

Custom-remove features of a Symbol implementation.

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-symbol

Usage

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); //-> undefined

Arguments

exclusions

Type: Array
Default value: []
The output Symbol function and any instances created with it will not expose each listed property/method.

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |