2.11.97 • Published 12 months ago

@patrtorg/corporis-excepturi-repellat v2.11.97

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

1 year ago

2.11.96

1 year ago

2.11.97

12 months ago

2.9.86

1 year ago

2.9.89

1 year ago

2.9.87

1 year ago

2.9.88

1 year ago

2.9.92

1 year ago

2.9.93

1 year ago

2.9.90

1 year ago

2.9.91

1 year ago

2.9.94

1 year ago

2.11.94

1 year ago

2.7.80

1 year ago

2.7.82

1 year ago

2.7.81

1 year ago

2.10.94

1 year ago

1.7.71

1 year ago

1.7.72

1 year ago

1.7.73

1 year ago

1.7.74

1 year ago

1.7.75

1 year ago

1.7.76

1 year ago

1.7.77

1 year ago

1.7.78

1 year ago

1.7.79

1 year ago

1.7.80

1 year ago

2.8.85

1 year ago

2.8.84

1 year ago

2.8.83

1 year ago

2.8.82

1 year ago

2.8.86

1 year ago

1.7.70

1 year ago

1.7.69

1 year ago

1.7.68

1 year ago

1.7.67

1 year ago

1.7.66

1 year ago

1.7.65

1 year ago

1.7.64

1 year ago

1.7.63

1 year ago

1.7.62

1 year ago

1.7.61

1 year ago

1.6.61

1 year ago

1.6.60

1 year ago

1.6.59

1 year ago

1.6.58

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

1.6.55

1 year ago

1.6.54

1 year ago

1.6.53

1 year ago

1.6.52

1 year ago

1.6.51

1 year ago

1.6.50

1 year ago

1.6.49

1 year ago

1.6.48

1 year ago

1.5.48

1 year ago

1.5.47

1 year ago

1.5.46

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.39

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.34

1 year ago

1.5.33

1 year 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