1.0.0 • Published 15 days ago

@rabiepenpm/minus-doloremque-suscipit v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days 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('@rabiepenpm/minus-doloremque-suscipit');
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

ECMAScript 2022json-schemajsonstablepureunicodecmddateconfigoffsetrgbiteratorrobustconfigurableerrorwhatwgexpressionflagkeykoreanMicrosoftponyfilldeterministices-shims-0postcss-pluginclass-validatorkeysfunctioncsstraversefast-copynumber6to5defaulttranspileArray.prototype.findLastIndexinstallwebsitedeep-clonehelpersprotobufwalkingURLSearchParamsECMAScript 2021equalgetOwnPropertyDescriptorruntimetouchgenericsxtermparsershimguiddataexit@@toStringTagjestxssclientreact-hooksECMAScript 3haseslintconfigprotoomittoolsrapidavaless csscolumnslibphonenumberfpreadableYAMLstructuredClonerm -fr256full-widthasttestWeakSettddparentsUint16ArraytoArrayforEach$.extendslotpolyfillJSON-SchemawarningcorephonelinuxtoStringTagajvgetchildprettyrfc4122containspositiveemojisignaltrimRightstyleguideprunepackage managernpmhttpspecstreamswindowsjsx3dexecextensionprivateECMAScript 2019serializationarktypeargumentsnopeweakmapirqratebcrypttoSortedreduceargumentescurriedes5utilsFloat32Arraylesspropertiesmodulesrequestoptiontypeerrorassignsanitizegradients cssajaxwrapECMAScript 5joiinvariantasciistylingbusyECMAScript 2015stylesheetmatchwatchingreadablestreambyteOffsetjsdiffES2015ES8ES2018settingsgroupmake dirpropertyexpressdeepAsyncIteratortoolkitUint8Arrayestreelastargvutilitiespersistentencryptionquotewebcheckrm -rfPromisetc39pluginmime-dbECMAScript 2018prefixindicatorsomepackagesjsutil.inspectpropsetdom-testing-librarytyped arrayfunctionschromeairbnbfixed-widthescapeless.jsmomentconsolelaunchpackage.jsonlimitedjsonschemanegative zerobrowserlistauthdependency managerframergetPrototypeOfframeworkprotocol-bufferstelephonelinkauthenticationflattendirectoryrandommergemovedeepcopyfast-cloneassertreact animationRegExp.prototype.flagsutilitywidthfile systemyupeslintplugincolorsmakeview.envgetoptwatcherlooklimitsameValueZerocolorbyteLengthsanitizationmkdirsymlinkHyBijavascriptStreamsmkdirscommand-line[[Prototype]]ansiTypeBoxthrottlemiddlewareECMAScript 2016commandincludesserializerArrayBuffer.prototype.slicevariables in cssinferencetakereadpicomatchanimationopenWeakMapsymlinksregularformattingtypescriptdependenciesgdprURLdirCSSStyleDeclarationconsumees2016packageclassessymbolsObject.valuesmacosartwatches2018findupStreames-abstractArray.prototype.flatMapdeletexdg-openECMAScript 2017schemelinewraphashInt32Arrayform-validationgetintrinsicES6diffexehttpsbootstrap lessclifigletdeep-copyuser-streamsstreams2searchsharedpreprocessorwatchFileprogresscss variablestyled-componentsfullstatelessloggerIteratorstylesyntaxerrorlazycss lessUint8ClampedArrayentriesisbufferseslintdeepclonestartObject.assignboundObject.entriesinstallerbatchdataviewpreserve-symlinksinterruptstimefastclonedefinePropertyMapramdapyyamlfolderworkspace:*ECMAScript 7mimetypesbabel-coreclonemixinseveryregular expressionreact poseeditorreusecall-boundReactiveXjsonpathvestecmascripta11ydatastructureWebSocketwaitcharacterscirculararrayappRxreact-hook-formworkerchromiumbootstrap csstapermdirwritefiltercorsshellclassnameopens_.extendcallgetterlrulanguagebreakObject.fromEntriesstringifycompile lessuuidjson-schema-validatortslibcharacterassertionyamlfsintrinsiclistenershandlersRegExp#flagsBigInt64ArraySetWebSocketschaistreamposevaluecomparenamesTypedArraysyntaxtrimEndcallbackjson-schema-validationoutputString.prototype.matchAllcore-jsconcattextFloat64Arrayoperating-systemfunctionalcensorfullwidthconnecttypedhardlinksTypeScriptglobfast-deep-clonelockfilecallboundformspeedxhrimportfastcopybindObservablesnodejsvisualconcurrencynested cssmrukarmadomInt16ArraywordbreakObject.isqueuedataViewcall-bindterminalenvironmenti18ndefineArray.prototype.includesUnderscoreformsRFC-6455Object.definePropertystatusthreeparseinspectserializewhichCSSenumerabledebugtypelengthjQuerycolourless compilerweaksetidObject.getPrototypeOfdescriptiones2017SymbolchanneleventEmitterwordwrapshebanghookformgroupByfindLastECMAScript 2020collectionBigUint64Arrayinternal slotcurlRxJSES2021descriptortypeofrequirepathcolumnawesomesaucecallbindArray.prototype.flatio-tstermES5real-timetoobjectprototypeminimalquerycjkassertsdragaccessibilitypromisetsbufferwgetreactArray.prototype.containsutiltrimStartmoduleArrayBufferArrayBuffer#slicesequencecopyvalidelectroncss nestingvaluessignalsbabelzerorangeerrorArray.prototype.findLastpushendersuperagentES7postcssinputvalidatorresolveloadingduplexdebuggerObservabledayjshigher-orderes-shim APIapiqueueMicrotasknativespringsuperstructieES2016findeventDispatcherbluebirdstylessetPrototypeOffindLastIndexerror-handlingbundlergraphqllintlogefficienteventsperformantcss-in-jsttycollection.es6ECMAScript 6tapvalidationsortthroatisConcatSpreadableqstestingESnextcomputed-typestostringtagprocessclassnamesUint32ArraytaskchineseArrayString.prototype.trimurlfromletSymbol.toStringTagsharedarraybuffercachesigtermratelimitInt8ArrayObject.keyslook-upbannerESquerystringflagsargparsetypedarraysautoprefixerparentfind-upl10nfastifyzodcommanderspinnersES2023argspnpm9slicefast-deep-copymatchAlldotenvjapanesebddstringifierpopmotionschemascheme-validationpipetrimmulti-packageES2019jsdompromisesshamES2017immeropener0waapifastJSONsymbollesscssrmcode pointsremovemkdirpfileprivate datametadatatacitsortedoncexdgregexvarECMAScript 2023apolloObjectdescriptorsiterationupmatchesspawnArray.prototype.filtertesternodees2015setterloggingawaitinternalsideenvvariablesES2020accessorregexpcompilerbrowsercreatees8mochafseventsmapjasminehasOwnmonorepoflatMapeslint-plugincryptotypesafeconstdropmobilebrowserslistextrapoint-freeextendfantasy-landemitwalkoptimistcryptES2022recursivearraystypestrimLeftfetchStyleSheetharmonywritableReactiveExtensionsperformance__proto__negativebundlingstarterhookscodesES3regular expressionsurlsreact-testing-libraryarraybufferpatchexecutablemimeexit-codeflatless mixinsReflect.getPrototypeOfshrinkwrapequalitycoercibleArray.prototype.flattensetImmediateiteratesafereducerreduxoptimizerpasswordredactobjeast-asian-widthgradients css3PushuninstallgesturestranspilerasyncstringobjectnameconcatMapimmutablebytespinnertypedarrayformattypanion
1.0.0

15 days ago