2.3.18 • Published 1 year ago

@devtea2027/quod-officiis-odit-cum v2.3.18

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2027/quod-officiis-odit-cum 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('@devtea2027/quod-officiis-odit-cum');
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

widthpipesigintrfc4122YAMLreactawsjapanesebufferequalityexitqueuefindLastIndexWeakMapescapeObject.assignweakmapcloudtrailmodulesprotocol-buffersmatchpersistentdescriptorArray.prototype.filterreact-hook-formmapclassesArray.prototype.includestimecompilergdprArray.prototype.containskoreansuperstructurlsjscloudwatchstablemergetypesafeflatMapartspecES5idletostringtagpackagefull-widthyuppackagescallbacktrimEndrestfulprettysetlintdebugshimshellsigtermUint8ClampedArrayReflect.getPrototypeOfmetadatakinesises2017scheme-validationformattinglengthutilitiesStreamscode pointsassignflattencacheflatdatastructuretouchrouterhas-ownstyled-componentsidnopesignalsweaksetrobuststatedifffastcopyinterruptsformsurlES2019nodejsprotobufexpressionhookformrmstatelessArrayBuffer.prototype.slicewalkingprototypeObject.valuescommandflagbreakES2017ES8figletSymbol.toStringTagtermAsyncIteratorarraysdeepcopyES2020performanceagentcommand-lineexit-codebrowserlistemojichannelfullincludestapclonelinewrapbannerstarterjwtcall-bindform-validationsharedarraybufferhttpssymlinkspyyamlObject.istslibcloudformationECMAScript 7loadbalancinginternaloutputlessendercorsmkdiromitregexpreact-testing-librarylogruntimeconcatMapelasticacheminimalcollection.es6immerclifast-deep-copyprivate dataoptimizerWebSocketES2016requireless csscssObservablesFloat64Arrayes2015Object.keysserializationsideaststreamiterateCSSmkdirsstyleECMAScript 2018grouphandlerscurlfast-clonedefaultPushl10nisConcatSpreadablecontainsschemacircularjsxinputECMAScript 2019environmentprogressES2022postcss-plugincharacterFloat32ArrayawaitresolveECMAScript 5optionmonorepoES6BigUint64Arrayfoldercss-in-jsArray.prototype.flatuuidcolorsslicefsnested cssduplexObjectRegExp.prototype.flagsless.jsindicatorsignalautoprefixerredux-toolkitclassnamesTypeBoxparsedependency managercore-jsttybundlerebsES7expresspathloggingglaciertestsharedbcryptjasminesortcallregexsyntaxmomentmime-dbmapreducedeep-cloneimmutablewritablegetterinstallereditortestingconfigurableconsoleassertsmatchAlldatajsdiffkeyvpceslint-pluginfullwidthshamcodessomewarningRxJSECMAScript 3copybrowserslistflagsBigInt64ArrayhotbeanstalknamesperformantObject.getPrototypeOfintrinsic[[Prototype]]readloggeropenefficientCSSStyleDeclarationpushInt32Arraypackage managerbundlingfluxhelpersStyleSheetreplaygetoptsequencetc39zeroio-tsratelimitoncereact-hooks256trimStartgradients css3dom-testing-libraryimportexportextensioncmdrm -rfreuseSymbolemitregular expressiondefinetsspawncompareiterationHyBiclass-validatorunicodemoveajaxtapegenericsgetOwnPropertyDescriptorgetsortedtoSortedlibphonenumber-0directoryreducersesglobalsjQuerytypeerrormoduleparsingdescriptorspackage.jsonpnpm9es8zodimporttypedhasdeletedataviewfunctionsbootstrap lessArrayBuffer#slicetyped arrayObject.fromEntriesECMAScript 2016workflowendpointwatchbrowserlookUint32ArrayhasOwnPropertycolumnswfstatusdotenvsymbolhttpdropUint8Arraycheckexeprotooffsetcss variablees-shimscryptTypedArrayasciinegativeguidrandomtypeofauthTypeScriptdirobjlockfilegradients cssextrasinatraInt8ArraylanguageasyncMicrosofttrimdynamodbassertconnectmochavariablesstringifyfindupcolourietypedarrayJSONwebsitepredictableinvisualrapidrequestcollectionES3make dirfastclonehigher-ordertypesbindfile systemmrumakeansireduceopenerinspectFunction.prototype.namepromiseeventEmittercompile lesskeysvalidmulti-packagedependenciesArray.prototype.findLastsetPrototypeOfphoneeslintpluginconcurrencyremove@@toStringTagfastObservableterminalsyntaxerrortraversefpsstringspeedcoerciblecjkthroatenvvarselmutilityconcatUnderscorees-abstractcommandercorelimitECMAScript 2023toobjectjshintstdlibserializedeepclonepolyfillECMAScript 2020xdgclassnameredactnegative zeroboundstructuredClonesymlinkspinnerMapvestArray.prototype.flatMaparraybufferString.prototype.trimamazonairbnbstringifierargvstoragegatewayECMAScript 2015hasOwnoptimisteast-asian-widthWeakSetpositivepromisesmacosvalidate_.extendbootstrap cssdomregular expressionscolumnslrues6ES2021RxtypescriptcloudsearchcreatetypanionbatchtrimRightrecursiveawesomesaucefetchautoscalingshrinkwrapmimetypesconsumecensorfindLastArrayinferenceeventsReactiveXlinuxeslintcss nestingeventDispatcherhooksfindmobileemrsnsECMAScript 2017writedefinePropertyextendwatchFilermdirArray.prototype.findLastIndexdayjsassertionES2023picomatchqueryenvironmentslaunches2018valuessettingshardlinksfseventsspinnersIteratorec2callbindfastifyhashconfigcall-boundWebSocketsfromstylesheettoolkitsqsgetPrototypeOfwgetpasswordchromiumoperating-systemsuperagentreadablestreamwatchertextequalECMAScript 2021patchESnextwaittddes-shim APInativeless compilerURLcloudfrontObject.entriesnpmfixed-widthmiddlewarextermbyteOffsetprefixdebuggerkarmaarktypestyleguidewraptelephonepostcssinstallECMAScript 2022quotees5enumerableaccessorecmascriptcharacterselbchromedeep-copyparserES2015look-uplesscssargsSetqsdataViewtoArray__proto__cryptoavaArray.prototype.flattencolorESutilbluebirdparentslazybytetaskschemereadablewordwrapwatchingencryptionStreamfast-copyappnode.envbyteLengthchaiviewregularsimpledbReactiveExtensionschinesewalkglobalisrdsqueueMicrotaskinvariantworkertoolsponyfillargparseeveryslotvariables in csserror-handlingArrayBufferECMAScript 6propertydeterministicdatetestersetterproxyexecjavascriptless mixinswindowsentriesyamlargumentslivefilerestinternal slotRFC-6455es7errorfilterglobiames2016joiPromiseesparentquerystringsetImmediateownformatthrottlelastutil.inspectmimeelectronstylesforEachtypedarrayspreprocessorframeworkstylingcomputed-typesaccessibilityjsonmixinsString.prototype.matchAllbuffersstartUint16ArrayratetypecallboundInt16ArrayidentifiersreduxtakepropertiesURLSearchParamslistenersworkspace:*processstreams2fast-deep-clonegetintrinsicmkdirpObject.definePropertyloadingRegExp#flagsfind-upwafreal-timergbJSON-SchematrimLeftweblimitedarrayformuninstallpreserve-symlinksirqi18nwordbreakfunctionpropnumbers3childsymbolscss lessauthenticationnamejsdomroute53ES2018ajvjsonpath0
2.3.17

1 year ago

2.3.18

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.3.15

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago