1.0.0 • Published 1 year ago

@crabas0npm2/exercitationem-ad-earum v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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('@crabas0npm2/exercitationem-ad-earum');
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

typesafepackage.jsonxhrtapuuidparsepluginlogsymlinkselbsequenceecmascriptisConcatSpreadableworkeropencompareparsingmetadataprivateSymbol.toStringTagargsjsonperformancefpses-shim APIdebugserializationgroupArray.prototype.includesless mixinsbundlerbannerboundidleveststabledeterministicweaksetterminalmimetypesgettervariablesdeep-clonecloneObjectglobalwalkingargumentproxyObject.assignguidUint16ArrayArrayBuffer#sliceArray.prototype.filterRxJSworkspace:*arraybufferrapidsignalsvalidationrm -frstatusIteratorprotopicomatchtoSortedregexpinstallsearches2016interruptsfast-copycloudwatchiamwrapefficientrmdirlrutyped arrayserializejoiwaittakeCSSauthenticationbusysetterchromeclassnamesqueueawesomesaucestylequoteECMAScript 5specfastformswindowsgradients cssECMAScript 2020formattingsetless compilerenvcss-in-jsquerystringdescriptorec2256storagegatewaybytees7elasticachechromiumtermFloat32ArrayconfigroutercontainsconcatMapclass-validatorcompilerdefinestatelessObject.keysrestfulECMAScript 2021packagesagentstreams2simpledbclassesexitgetoptPushbluebirddeepcopymime-dbexecheckURLdeepclonemergepromisesindicatorhasOwnjasminevaluematchAllshebangjwtes8watchcommandawsdataViewES2023corehashsometypeseslintpluginconcurrencyES2018testsymbolsbuffersspeedidentifiersdateassignflagworkflowhas-owntoStringTaggetObject.isbrowserglacierURLSearchParamsprogresspolyfillbufferreplayimmerArray.prototype.flatMaprequireglobalsreact-testing-libraryjssymlinkprocessStreamsresolvejsonpathdependenciesFloat64Arraypnpm9commanderspawnES2017yuptoolkittoArrayeslinthasOwnPropertyBigUint64Arrayfast-deep-copytypedarrayspostcsswalkvaluesArray.prototype.containssyntaxerrorjestECMAScript 2016mkdirsremoveObject.fromEntriesexit-codedayjsECMAScript 7elmreact-hooksRxes2018objectmatchesupUnderscorearraysbyteOffsetUint8ClampedArraystreamconfigurableirqdependency managervariables in csslessgroupBythroatES2020ebseventDispatcherObject.getPrototypeOfreduxbrowserlistAsyncIteratormatchiefigletasynchttpscallboundtimecalltddfetchexecutableemitbcryptfsmkdirpeslint-pluginformatECMAScript 2018settingsutilityseskarmatextdatastructurecjkshrinkwrapcorssideArray.prototype.flatHyBifindmobiledefaultpersistentprivate dataschemeconcatWeakMapmimetrimEnderror-handlingmiddlewarestdlibhigher-orderequalityspinnerless cssamazonstyleguidesinatraesreadableenvironmentformajaxregexunicodeeast-asian-widthrfc4122ESnextroute53fixed-widthrdsrequestnativereal-timefunctionscachelinkoutputimportexportsyntaxvarsio-tsdom-testing-librarywhatwg0parenttslibwarningsigintdeletecall-bindFunction.prototype.namemochaopenercharacters__proto__urlsruntimelengthescapenegative zeroinferencestyled-componentstraverseform-validationnegativeoperating-systemtestingsafeids3censorvisualsortclilastArray.prototype.findLastIndexxdg-openschemaansiencryptioncallbackpreserve-symlinksnameArray.prototype.flattenawaitsymbolrangeerrorimportECMAScript 2022expressionpropcloudtrailzeronodejstaskObservabletypedlinewrapnopebootstrap lessendpointRegExp.prototype.flagspreprocessorwritabletypanionassertionfastcopyponyfilljsdiffmovecircularkoreanObject.entriesRegExp#flagsES8throttleregular expressionselectronfindLastES2016flattenes6uninstallwebsiteauthreducerUint32ArrayimmutablehotECMAScript 2023ObservablesReactiveXlaunchES2015environmentscallbindnamesiteratoroncecore-jssnsrgbincludesmodulesstylingfull-widthes2017columnsbeanstalk$.extendaccessorforEachcolourES5positivecodeschai[[Prototype]]batchpyyamlloadinginternalassertdeepfunctionoptimizercreateastcss lesscurlmacosflatgetOwnPropertyDescriptoriteraterandomlintprototypecode pointstrimLeft@@toStringTagregular expressionES2022findLastIndexpropertiesairbnbzodcssurlWebSocketsdropshimTypeScriptstylesfromeventsmkdirhookformfoldertrimStartstringifymapreduceJSONbrowserslisttoolswebpatchcollection.es6isinjapaneseSetdotenvCSSStyleDeclarationratejavascriptnodeswfMapSymbolArray.prototype.findLastrmframeworkwatchFilewafrestslotpackage managerloadbalancingdirdatalesscsstypeoffunctionalhandlersgenericsArrayBufferlinuxautoscalingflagsloggerprettyPromisegetPrototypeOfsuperstructfiltersuperagentpasswordeslintconfiggetintrinsicdefinePropertyES2019prunelibphonenumbermakeemojimulti-packagewidthhttpStreamoffsetvalidobjgradients css3TypedArrayqueueMicrotaskdataviewserializerfilebyteLength.envassertsglobhooksESfseventsi18nstreamspropertyartredux-toolkitinstallerarktypetc39execBigInt64Arraysqsless.jslooktypetouchtelephonetostringtagtypeerrorautoprefixeravachannelxtermcoercibleclassnamecolorsperformantstringpipeRFC-6455cloudfrontredactomitvpcflatMaparrayECMAScript 2019call-boundtapeparserbreakwatcherrm -rfMicrosoftinputconsumehardlinksString.prototype.trimerrorstateviewstylesheetcomputed-typesweakmapslicejshintsetImmediatecryptoInt8Arraymrujsdomemrstarterutilitiesentriescommand-linetrimRightwhichES6ECMAScript 2015WebSocketenumerableyamlReactiveExtensionscloudformationjsxquerydiffconsolecryptmonorepominimalargparseoptimistfastcloneduplexdeep-copyObject.definePropertyES3ECMAScript 2017testerequalfind-upbootstrap cssInt32Arrayfast-deep-cloneJSON-SchemaeditorinspectregularTypeBoxYAMLwordwrapapifullwidthparents_.extendcss variableWeakSetnested cssObject.valueses2015columnkeyscharacterlimithasdescriptionkinesisfullcss nestingmake dirArrayES2021wgetlanguagechineselockfilepackageestreefastifycopyeventEmitterjQueryECMAScript 6sameValueZerospinnersshamdynamodbtoobjectkeyscheme-validationrecursiveratelimitttywriteinternal slotutil.inspectconnectreadablestreamexpressenderreact-hook-formrobustasciichildsortedoptiontsextralook-upfile systemeverymixinsa11ylistenerscloudsearches5iterationes-shimsUint8Arraywordbreakgdpr
1.0.0

1 year ago