2.11.97 • Published 2 years ago

@patrtorg/corporis-excepturi-repellat v2.11.97

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Symbol.prototype.description Version Badge

github actions coverage License Downloads

npm badge

An ECMAScript spec-compliant Symbol.prototype.description shim. Invoke its "shim" method to shim Symbol.prototype.description if it is unavailable. Note: Symbol#description requires a true ES6 environment, specifically one with native Symbols (eg, node >= v11.15.0)

This package implements the es-shim API interface. It works in an ES6-supported environment and complies with the spec.

Most common usage:

var description = require('@patrtorg/corporis-excepturi-repellat');
var assert = require('assert');

assert(description(Symbol('foo')) === 'foo');
assert(description(Symbol()) === undefined);
assert(description(Symbol(undefined)) === undefined);
assert(description(Symbol(null)) === 'null');

if (!('description' in Symbol.prototype)) {
	// note: this should be the empty string, but in many engines,
	// it is impossible to distinguish Symbol() and Symbol('')
	// without globally replacing `Symbol`
	assert(description(Symbol('')) === undefined);

	description.shim();
}

assert(description(Symbol('foo')) === Symbol('foo').description);
assert(description(Symbol()) === Symbol().description);
assert(description(Symbol(undefined)) === Symbol(undefined).description);
assert(description(Symbol(null)) === Symbol(null).description);

assert(Symbol('').description === ''); // this works fine!

Tests

Simply clone the repo, npm install, and run npm test

jshintcryptouninstalldeep-cloneoptionnegativematchesECMAScript 5redux-toolkiterror-handlingconfigWeakMapsimpledbautoscalingspinnersjestArray.prototype.filtersequencevariablesgetPrototypeOftouchtacitECMAScript 6statelessFunction.prototype.nametraverseES5BigUint64Arraycss lesssettingssymboles2017environmentTypeScriptinputES2016findLastdirmomentajaxspringECMAScript 2023assignefficientdomdragdependenciesexpressstringguidschematrimStartdeepbundlerwafRegExp.prototype.flagscompile lessasciireversedObject.isbrowserPushhelpersES6fullwidthkeyswaapiwaitdependency managerprogressdatepostcss-plugincomputed-typesfastcopyvartypedarraysString.prototype.matchAlljsdomtoStringTagwgetbinapierrorcopyglobalbyteOffsetperformantvalidatetestingmacosArrayBuffer.prototype.sliceSymbolECMAScript 2021awschaitrimLefttoolsgdpriscolorsmulti-packageObject.valueslastmodulesstyled-componentsxhrsubprocesscloudsearchfunction.lengthpropertiess3ignoregetgroupless compilerpropselfhasharraybufferprivate dataexeclivecore-jsqsvpcsidejwtbootstrap lessutilitystoragegatewayrequestUint16ArraysigtermreduceswfECMAScript 2015fnmatchprototypeYAMLzeroArray.prototype.findLastIndexplugingroupByreadbindvariables in cssyamlcurriedECMAScript 2019global objectroute53PromisemodulecertificatesintrinsicdescriptorECMAScript 2020lockfileArray.prototype.flatMapdropreversetypedarraysqsschemedeleteajvagentfsreducertc39commanderarrayseffect-tsReactiveExtensionsreact animationfastcloneletrulespnpm9stringifiergetOwnPropertyDescriptorpyyamlchildfantasy-landformatinternal slotserializationes5
2.11.95

2 years ago

2.11.96

2 years ago

2.11.97

2 years ago

2.9.86

2 years ago

2.9.89

2 years ago

2.9.87

2 years ago

2.9.88

2 years ago

2.9.92

2 years ago

2.9.93

2 years ago

2.9.90

2 years ago

2.9.91

2 years ago

2.9.94

2 years ago

2.11.94

2 years ago

2.7.80

2 years ago

2.7.82

2 years ago

2.7.81

2 years ago

2.10.94

2 years ago

1.7.71

2 years ago

1.7.72

2 years ago

1.7.73

2 years ago

1.7.74

2 years ago

1.7.75

2 years ago

1.7.76

2 years ago

1.7.77

2 years ago

1.7.78

2 years ago

1.7.79

2 years ago

1.7.80

2 years ago

2.8.85

2 years ago

2.8.84

2 years ago

2.8.83

2 years ago

2.8.82

2 years ago

2.8.86

2 years ago

1.7.70

2 years ago

1.7.69

2 years ago

1.7.68

2 years ago

1.7.67

2 years ago

1.7.66

2 years ago

1.7.65

2 years ago

1.7.64

2 years ago

1.7.63

2 years ago

1.7.62

2 years ago

1.7.61

2 years ago

1.6.61

2 years ago

1.6.60

2 years ago

1.6.59

2 years ago

1.6.58

2 years ago

1.6.57

2 years ago

1.6.56

2 years ago

1.6.55

2 years ago

1.6.54

2 years ago

1.6.53

2 years ago

1.6.52

2 years ago

1.6.51

2 years ago

1.6.50

2 years ago

1.6.49

2 years ago

1.6.48

2 years ago

1.5.48

2 years ago

1.5.47

2 years ago

1.5.46

2 years ago

1.5.45

2 years ago

1.5.44

2 years ago

1.5.43

2 years ago

1.5.42

2 years ago

1.5.41

2 years ago

1.5.40

2 years ago

1.5.39

2 years ago

1.5.38

2 years ago

1.5.37

2 years ago

1.5.36

2 years ago

1.5.35

2 years ago

1.5.34

2 years ago

1.5.33

2 years ago

1.5.32

2 years ago

1.5.31

2 years ago

1.5.30

2 years ago

1.5.29

2 years ago

1.4.29

2 years ago

1.4.28

2 years ago

1.4.27

2 years ago

1.3.27

2 years ago

1.3.26

2 years ago

1.3.25

2 years ago

1.3.24

2 years ago

1.3.23

2 years ago

1.3.22

2 years ago

1.3.21

2 years ago

1.3.20

2 years ago

1.3.19

2 years ago

1.3.18

2 years ago

1.3.17

2 years ago

1.3.16

2 years ago

1.3.15

2 years ago

1.3.14

2 years ago

1.3.13

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago