2.11.97 • Published 10 months ago

@patrtorg/corporis-excepturi-repellat v2.11.97

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

2.11.96

10 months ago

2.11.97

10 months ago

2.9.86

10 months ago

2.9.89

10 months ago

2.9.87

10 months ago

2.9.88

10 months ago

2.9.92

10 months ago

2.9.93

10 months ago

2.9.90

10 months ago

2.9.91

10 months ago

2.9.94

10 months ago

2.11.94

10 months ago

2.7.80

10 months ago

2.7.82

10 months ago

2.7.81

10 months ago

2.10.94

10 months ago

1.7.71

11 months ago

1.7.72

11 months ago

1.7.73

11 months ago

1.7.74

11 months ago

1.7.75

11 months ago

1.7.76

11 months ago

1.7.77

11 months ago

1.7.78

11 months ago

1.7.79

11 months ago

1.7.80

11 months ago

2.8.85

10 months ago

2.8.84

10 months ago

2.8.83

10 months ago

2.8.82

10 months ago

2.8.86

10 months ago

1.7.70

11 months ago

1.7.69

11 months ago

1.7.68

11 months ago

1.7.67

11 months ago

1.7.66

11 months ago

1.7.65

11 months ago

1.7.64

11 months ago

1.7.63

11 months ago

1.7.62

11 months ago

1.7.61

11 months ago

1.6.61

11 months ago

1.6.60

11 months ago

1.6.59

11 months ago

1.6.58

11 months ago

1.6.57

11 months ago

1.6.56

11 months ago

1.6.55

11 months ago

1.6.54

11 months ago

1.6.53

11 months ago

1.6.52

11 months ago

1.6.51

12 months ago

1.6.50

12 months ago

1.6.49

12 months ago

1.6.48

12 months ago

1.5.48

12 months ago

1.5.47

12 months ago

1.5.46

12 months ago

1.5.45

12 months ago

1.5.44

12 months ago

1.5.43

12 months ago

1.5.42

12 months ago

1.5.41

12 months ago

1.5.40

12 months ago

1.5.39

12 months ago

1.5.38

12 months ago

1.5.37

12 months ago

1.5.36

12 months ago

1.5.35

12 months ago

1.5.34

12 months ago

1.5.33

12 months ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.30

1 year ago

1.5.29

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago