1.0.0 • Published 12 days ago

@ryniaubenpm/laudantium-quos-fuga v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

@ryniaubenpm/laudantium-quos-fuga Version Badge

github actions coverage License Downloads

npm badge

ES2015-compliant shim for Object.is - differentiates between -0 and +0, and can compare to NaN.

Essentially, Object.is returns the same value as === - but true for NaN, and false for -0 and +0.

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

Example

Object.is = require('@ryniaubenpm/laudantium-quos-fuga');
var assert = require('assert');

assert.ok(Object.is());
assert.ok(Object.is(undefined));
assert.ok(Object.is(undefined, undefined));
assert.ok(Object.is(null, null));
assert.ok(Object.is(true, true));
assert.ok(Object.is(false, false));
assert.ok(Object.is('foo', 'foo'));

var arr = [1, 2];
assert.ok(Object.is(arr, arr));
assert.equal(Object.is(arr, [1, 2]), false);

assert.ok(Object.is(0, 0));
assert.ok(Object.is(-0, -0));
assert.equal(Object.is(0, -0), false);

assert.ok(Object.is(NaN, NaN));
assert.ok(Object.is(Infinity, Infinity));
assert.ok(Object.is(-Infinity, -Infinity));

Tests

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

es-shimsfpbrowserslistUint8ClampedArrayfullFloat32ArraysymbolsescapegetintrinsiccallboundpromisecorsenumerableentriesArray.prototype.findLastIndexes6waapiutil.inspecthelpersidRxefficientdotenvdatesignalsjson-schema-validationtapqueuees-abstractmomentES6testingjsonpathregexpminimalindicatorawaitES2020includesinternalES2023cssECMAScript 6keysmetadatatestRxJSobjectECMAScript 2018rfc4122trimRightrecursivebuffergetPrototypeOfUint16Arraysyntaxttycss-in-jsdescriptorkoreanio-tswebrangeerrorJSON-SchemainspectemitvisualforEachexeinferenceSetpackageECMAScript 2020regularArray.prototype.includesuninstalleventEmitterchaiidleWebSocketfolderlimitcensorcollection.es6ArrayBuffer_.extendfastcloneTypeScriptenvironmenthasOwnECMAScript 2022matchesschemasliceES8listenersUint32ArrayreadablepositivestylewhatwgeventstypedarraybusySymbol.toStringTagletdescriptioncore-jsreduceWeakSetcodescomparearraysfile systemsymlinkastes2017debuggerhooksArrayBuffer#sliceObservableFloat64ArraychildPromiseguidfigletmixinscurriedtssuperagentenderregular expressionstrimLeftcharactersbootstrap lesspolyfillcallbackprivateutilsfast-cloneequalgraphqlnamespostcsses-shim APIstyled-componentsiterationtakeopenergroupBytranspileprefixstyleguidecachefullwidthtoArraystreams2nativeargumentsES2019requirecreateclassesprotobufdeep-clonehttpstrimeslint-pluginmapmoduletasklaunchrmReactiveExtensionscompile lessnopelrucoercibleeslintwarningpathmkdirInt32Arraylogiteratebddrm -rfloadinglengthcolorsBigInt64Arrayregular expressionframeworkxdg-openstringifierjsonthreefinduptyped arrayprototypewidthconnectpnpm9javascriptxtermexpressiontc39parsejsonschemaarraypicomatchstatelessapipackage managerObject.definePropertyStreamsloggersymbolassignwatcherECMAScript 2023weaksetArray.prototype.flatMapObject.keysRegExp.prototype.flagsECMAScript 2016Int16Arrayes8circulartermless csspatchratelimitapollofunctionObject.entriesslotfrommrulook-upcss lessbreakreact-hook-formcolourWeakMapsigtermECMAScript 5variableswindowsmochababelES3spawnajaxlibphonenumberexitwatchFileObservableseverydebugYAMLreal-timergbbabel-coreIteratordragwordwrapflagtypescriptup$.extendcalles2015requestfixed-widthdom-testing-librarypersistentmime-dbpropertiesyamlcryptoMicrosoftutilitycontainswritesortdeterministicUnderscoreoutputserializationObject.isstylingtypedarraysless compilerinternal slottranspilerpipesyntaxerrordefineconsumeuser-streamsautoprefixerformsnodeprunelookcollectiondeep-copyloggingkeyduplexECMAScript 3batchHyBisomeES2022writabledeepcopythroatpluginmake dirsigintprettydifflesscssparentkarmaflatMaptelephonepasswordES2018copyformterminalreadablestreamavafetchspecstructuredCloneremoveeditorobjjoigetquerystringajvomitdescriptorschromiumcjknegative zerozod6to5bundlerjQuerycharacter[[Prototype]]immerchinesefilterMap0jsrateboundfast-deep-copyreducervalidurlsvarAsyncIteratorlessnegativelintextravalidatestarternested cssargparsestatuslinkObject.valueshandlershttpvesttimespinnersa11ymimetypessanitizeserializerspeedvariables in csstypesurlawesomesaucecomputed-typesclassnamesReactiveXnodejsfindLastStyleSheetURLSearchParamsjsdomcss variableconst@@toStringTagartsuperstructtostringtagwgetreadresolvedataViewString.prototype.matchAllintrinsicdomdefinePropertybundlingdependency managergenericsmergetextimportcoredefaultReflect.getPrototypeOfiehashjson-schema-validator256npmchromeWebSocketslinewrapRegExp#flagsthrottledropfast-deep-clonetesterenvinputemojiECMAScript 2015JSONform-validationsharedreact animationexecutableassertstypeerrorfastrm -froptionjasmineoncequerybluebirdjsdiffwhichworkspace:*eslintconfigObject.getPrototypeOfhookformECMAScript 2019less mixinsschemeeast-asian-widthpopmotionexit-codesearchsequencequotefastcopyFunction.prototype.namewordbreakscheme-validationargvrmdirharmonywalkingargscommandprocessmatchmonoreponumberes5css nestingredactbootstrap cssxdgerrorCSSpoint-freeecmascriptsideString.prototype.trimfseventsperformancepreserve-symlinksutilitiescommand-linerapidmake-0typedstreamtoolsmkdirpCSSStyleDeclarationauthshamArrayBuffer.prototype.sliceutilcolumnspostcss-plugindataviewtacitstabledeletehardlinksUint8ArraytrimEndeslintpluginredux-toolkitvalidatorbcryptTypedArrayprotocol-buffersreusepushtoolkitcall-boundgdprvaluegetoptfantasy-landInt8ArrayauthenticationESnextsettingsArray.prototype.flattensymlinksconfigdatastructureECMAScript 2017reactwatchweakmapcolorArray.prototype.filterfunctionalspringbuffersESarraybufferlastcryptequalityflatsafeconcurrencyURLbyteconfigurableimmutableexectypanionECMAScript 7checkpuremkdirsasyncstartlockfileargumentfsArray.prototype.containsvaluessetPrototypeOfdirshimcolumnflattenjson-schemahigher-orderes7animationaccessibilityoptimizeransii18nreact-testing-libraryinvariantdirectoryObject.assignmodulesclone.envwalkspinnertoSortedmatchAllposeaccessorcall-bindES7ECMAScript 2021channeles2016error-handlingprogressclientlinuxstylesheetfull-widthRFC-6455deepfastifywrapoptimistPushformatbindArray.prototype.findLastappiteratorexpressopensstyleswebsiteframerassertionclass-validatorwaitsetterelectronsameValueZeroreduxless.jsArrayconsolepackagesbannerconcatprivate dataparents3dinstallconcatMapirqeventDispatcherreact-hookslanguageoperating-systemBigUint64Arrayextensionestreestreamsrobustgetteropenviewpromises__proto__tapeglobpackage.jsonpropphone
1.0.0

12 days ago