8.9.92 • Published 10 months ago

@kollorg/ducimus-iusto v8.9.92

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@kollorg/ducimus-iusto 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('@kollorg/ducimus-iusto');
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

parserarraysappsetterdomjshinthas-ownoptimistlookprotocol-buffers0typeerrorjavascriptprefixweakmapbrowserlistmoveECMAScript 2016_.extendenumerablenodetransformcsstapeavaUnderscoretrimStartbuffersescloudsearchminimalslotUint16ArrayfromdeleteidentifiersinsortedwarningArray.prototype.findLastIndexES2023validationdropdotenvprototypejoicollectionwafreduceJSONreactjQuerynpmpropimmerdependency manageriteratorfast-deep-copyfpObservableECMAScript 2018tddES2016ES2019equalbddextend[[Prototype]]definePropertysource mapglobalspinoarktypekinesiszeroArrayBuffer.prototype.sliceprogressfunctionalString.prototype.matchAllschemeprivate datadefinestringifierbinaryES2022chromegesturesdataviewweaksetinstallES2020Array.prototype.filtereventsArray.prototype.containskarmajson-schema-validationes6findupmkdirsECMAScriptpnpm9shimconcatcjkamazonaccessibilityMicrosoftuser-streamsendpointhashequalityECMAScript 2017requireSystem.globaltoolsshrinkwrapec2RegExp.prototype.flagsimmutabletelephonequeuebeanstalkfsUint32Arrayreact-testing-librarywritablevarstimeframeworkformshooksrapidvpccollection.es6constunicodemoduleBigUint64Arrayinvariantroute53streamTypeScriptparentwait256awspostcssinspectfunctionsisConcatSpreadableacorncallbindPromisetypeofspecflagspostcss-pluginansiCSSStyleDeclarationdeterministicreact-hook-formformqueueMicrotaskutilxtermsubprocesstoArraycopyoptimizerreversedtrimRightidleURLes-shim APIjsdiffes2017queryformatecmascripttransportstreamspluginroute.gitignorepackagesSymbol.toStringTagsimpledbstoragegatewaykeytestserializationgetterhtmlanimationconsoletypedrfc4122functionmkdirCSSregexapifantasy-landECMAScript 2020gdprdeep-copyYAMLmrusuperstructsyntaxerrorreact posedataViewforEachUint8ClampedArrayidgetoptReactiveExtensionsfind-upwhichswfrssmatchesregular expressionscheme-validationfile systemchildsharedarraybufferfast-deep-cloneeast-asian-widthuppyyamlsetPrototypeOfbines2018deepcopycompilertextspinnersgraphqlglacierespreeprotobufassertzxes5toobjectIteratorsafepolyfilleverysymbolcallboundworkspace:*airbnbsnsdescriptorES2021eslintconfigfnmatchentriesdiffvarrandomcharacterhasES2018typesafeenvironmentselbtseventDispatchererrornopedeepclonetapflattenperformantbanneratomcacheWebSocketmergebounddebuggerses6to5commandstyleguidetouchTypedArraybabel-coreloadingconfigurableloggercore-jsrulesasterisksprotoperformancestylesruntimeWeakSetdateES3httpsstringifyhardlinksserializerpushpurereverseglobeffect-tstc39-0namesestreetypesmulti-packagemanagerInt16ArrayinstallercolumnsfastcloneimportspringprocessspawnpreprocessoragentRFC-6455settingsgetOwnPropertyDescriptorcensorObservablesnegativetrimLeftindicatorworkflowramdaes2015typed arrayassertionjsonenvECMAScript 2022ECMAScript 7stringES8utilsstylingvisualastinputmapreduceprivatenpmignorespeedposeAsyncIteratorloadbalancingsinatraflatlockfilewaapiasynces7findLastIndexbrowserslistfindargumentObject.definePropertyflatMaptypescriptenvironmentfastcopyreduxRegExp#flagsfast-clonedeep-cloneArray.prototype.includescurlReflect.getPrototypeOfeslintpluginebsframercolourECMAScript 2015tacitwhatwgjson-schemalook-ups3code pointssuperagentrm -frbindObject.valuesWeakMapsomeoutputWebSocketsletcloudtrailfolderdatamodulesregexpsearchcoreowndayjsvalidnumberreducerglobal objectreuseUint8Arrayeslint-pluginlistenersrestvestbrowsersymlinksdirectoryArray.prototype.flatextragroupByiterateclassnamestypemonorepomobile3dpackage managerObject.isjsonschemainstrumentationobjectio-tsoptionvariableslinkESnextstableStyleSheettoReversedsharedfullwidth__proto__readcircularpipezodcolorflagMapECMAScript 5readablequoteESfigletworkerpatchxhrrmdirECMAScript 6ajaxincludesaccessorendercolorsomitstarterclibufferpicomatchgroupcurriedHyBicallsqssetbyteautoscalingRxcss-in-jsSetES2015parsexmlcomparereadablestreamwalkharmonyhelperstraverseartimportexportfpscommanderrecursiveyamlString.prototype.trimwalkingglobalThisquerystringStreamyuplastfast-copysymbolsassigncloudformationpoint-free.envpropertyemrredux-toolkitArray.prototype.flattentostringtagtrimgetPrototypeOfrangeerrorlibphonenumber$.extendFloat32Arrayparentses-shimsObject.entriesprettyfastfull-widthArray.prototype.flatMapefficientglobal this valueclass-validatorutilitiescommand-linebusyreact animationdescriptorscryptopruneuninstallhigher-orderregulardragmatchAllinferenceconsumeviewshames8mochaObject.getPrototypeOftypanioncodesuuidcontainsmake dirnativea11yArrayFunction.prototype.nameselfiamStreamsgetmakedependenciescharactershttpescapeURLSearchParamsspinnertestertslibchannelrmdescriptionECMAScript 2019Int8Arrayreal-timevaluebyteLengthmomentObjectguidTypeBoxsyntaxPushArrayBuffer#sliceargvdeepl10nredirectawesomesaucei18ncallbackeventEmitterexecObject.assignutil.inspectrm -rfconfignameiegitignorejestlintfunction.lengthclassescall-bindphonelogmatchgenericslengthautoprefixerthreepackagetakebinariesbabelexecutewebqscreatevalueshasOwnPropertyconcatMaproutingcolumnES2017setImmediateECMAScript 2023eslintObject.keyscall-boundrequesthelpercloudfrontcoerciblearraybufferes-abstractponyfillstylepackage.jsonjson-schema-validatorforkfullshebangSymbolECMAScript 2021toolkitArrayBufferglobaljapaneseloggingcomputed-typeshookformjsvalidatorwidthexecfileremovenegative zerobundlingtoStringTagdirelectronajvJSON-Schemarobustregular-expressionkoreandynamodbtermdom-testing-libraryreworkbyteOffsetslicebundlerlrufetchtestingregular expressionslanguagetranspileemitfileclonemetadatawritenodejsexpressionurlInt32ArrayisES5mappositiveRxJShasOwnchaisorttypedarrayreact-hooksfixed-widthcheckmkdirpformattingfindLastelasticacheobjclassnameoffsetjasmineBigInt64ArrayjsdomterminalargsES6side
8.9.92

10 months ago

7.9.92

11 months ago

7.9.90

11 months ago

7.9.91

11 months ago

6.9.90

11 months ago

5.9.89

11 months ago

5.9.90

11 months ago

5.9.88

11 months ago

5.9.87

11 months ago

5.9.86

11 months ago

5.9.85

11 months ago

5.9.84

11 months ago

5.9.83

11 months ago

5.9.82

11 months ago

5.9.81

11 months ago

5.9.80

11 months ago

5.9.79

11 months ago

5.9.78

11 months ago

5.9.77

11 months ago

5.9.76

11 months ago

5.8.76

11 months ago

5.8.75

11 months ago

5.7.75

11 months ago

5.7.74

11 months ago

5.7.73

11 months ago

5.7.72

11 months ago

5.7.71

11 months ago

5.7.70

11 months ago

5.7.69

11 months ago

5.7.68

11 months ago

5.7.67

11 months ago

5.6.67

12 months ago

5.6.66

12 months ago

5.6.65

12 months ago

5.6.64

12 months ago

5.5.64

12 months ago

5.5.63

12 months ago

5.5.62

12 months ago

5.5.61

12 months ago

5.5.60

12 months ago

5.5.59

12 months ago

5.5.58

12 months ago

5.5.57

12 months ago

5.5.56

12 months ago

5.5.55

12 months ago

5.5.54

12 months ago

5.5.53

12 months ago

5.5.52

12 months ago

5.5.51

12 months ago

5.5.50

12 months ago

4.5.50

12 months ago

4.5.49

1 year ago

4.5.48

1 year ago

3.5.48

1 year ago

3.5.47

1 year ago

2.5.47

1 year ago

2.5.46

1 year ago

2.5.45

1 year ago

2.5.44

1 year ago

2.5.43

1 year ago

2.5.42

1 year ago

2.5.41

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.5.36

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.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.5.25

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.4.21

1 year ago

1.4.20

1 year ago

1.4.19

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.2.9

1 year ago

1.2.8

1 year ago

1.2.7

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

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago