4.10.95 • Published 1 year ago

@kollorg/sunt-rerum v4.10.95

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

@kollorg/sunt-rerum 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/sunt-rerum');
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

toolkitfunction.lengthdataViewfast-deep-clonetostringtagsharedarraybuffersubprocesssiderulesArray.prototype.flatcoreinternalacornreducerES2020listenersObject.keysa11yObject.definePropertyvalidationpackage managerdragpostcss-pluginRxJSbabelcolorssnscliprototypebundlingpathspecreversecallworkspace:*ESnexttypesafemapisConcatSpreadableequalrds-0ttywaitpropertiesprotobufeslintURLnegative zeroURLSearchParamsuser-streamswhatwgwritewindowECMAScript 2021istanbuljavascripttc39description6to5immernamejQueryredactdeep-copyviewquerystringrmdirregular-expressionutil.inspectdateTypeBoxarktypeflagswidthcallbindpnpm9estreees2016structuredClonetypanionhasECMAScriptconcatMapxmlxtermfinduppatchvariablesstyled-componentses5configES2016qseffect-tslook-upintrinsicfast-deep-copyIteratorshebangstyleswaapirgbdefinetacitESstyleguiderestconfigurabledayjstslibzodavainputtoStringTagworkerMaproute53$.extendtypeboundqueueelasticacheassertschromiumamazonconcatparentsform-validationcoveragekarmatypescriptspringECMAScript 2016tddweaksetstylingprivatefindLastIndexresolveutilitiesRegExp.prototype.flagscachechromePushtestlogenvironmentsdom-testing-libraryfastcopylockfilefast-cloneimportcloudformationvaremitmruquotedynamodbhookformReactiveXserializeES2017gdprpropertyflatarrayzxswfslotpackage.jsonvpcjsonfromArrayBuffer.prototype.sliceYAMLtrimpromiseartwebspinnershasOwnMicrosoftredirectlibphonenumberES2023varsString.prototype.matchAlldependenciesclientUint8ClampedArrayWeakSetpackagesES2019setImmediatelengthdeepcore-jses7extraremoveArray.prototype.filteremojitestinguuidelbchinesetoSortedfast-copyprocessreal-timephonenameswalkingpackagecryptotranspilecommanderBigInt64Arraypipetelephonegenericscss-in-jsajaxspeedregular expressionsappinspectkeycurlmulti-packagesortedharmonyinstallerrangeerrorequalityunicode0typedECMAScript 2015higher-orderfulljshintmovebyteOffsethttpmonoreporegular expressionfull-width_.extendownTypeScriptJSONstarterfind-uparraysmkdirpcompareSetproxymatchAllimportexporttoReversedstringreworkperformancepopmotionclassnameecmascriptFunction.prototype.nameInt32ArrayqueueMicrotaskexecbeanstalkfilteres-abstractclass-validatordropbabel-corevalidateES7prunebyte[[Prototype]]react posecharacterECMAScript 2018WebSocketstreamhasOwnPropertyexpressionsinatraString.prototype.trimebsvaluesposecensortoobjectcode pointsreduxespreeidentifiersstringifyUint32Arrayzeroes-shim APIglobal this valuestablekinesissetterfolderselfdebuggetintrinsicfunctionsreuseglobalwalkreadschemejsdomcloudtrailcontainsjsES2022getframeworkaccessorregexptapmkdirsperformantJSON-Schemaprettyes6checkasterisksstringifierrestfuldeepclonelanguagesorttranspilerenvjapanesechildinvariantformprotocol-buffersaccessibilitys3datarandomrm -rfscheme-validationstylebrowserlistconsoledeep-clonewritablecall-bindES3vestES8getoptoptimizermobilerouteECMAScript 6lintchannelfigletrm -frsqscolumnspreprocessorjoisharedfetchECMAScript 2023airbnbescapeBigUint64ArrayforEachbufferSymboljsxslicenpmdependency managerloggercallbackcollectionformattingoptimistspawnObservableFloat64ArrayArray.prototype.containscreategesturestoolsgetPrototypeOf3distrimLeftes-shimssetPrototypeOfcsssyntaxerrornodejshelperslrushamfileshellglobjson-schema-validatorfunctionutilityfeedreduceECMAScript 2020react animationStreamsloggingtypeerrorObject.assigncolourreact-hook-formObject.entriesmomentECMAScript 2022terminalnativefsreact-testing-libraryio-tscopySymbol.toStringTagmakepyyamlstreamsutilsredux-toolkitinternal slothookswarningUnderscoreloadbalancingreversedi18njsonschemaupflagsameValueZeromochalookeslint-pluginglobalsrequestenumerablefastlinkObservablesdiffbinUint8ArrayPromiserequirecolorletfantasy-landerrorapiquerycoercibleminimal.env.gitignorenegative
4.10.94

1 year ago

4.10.95

1 year ago

4.10.93

1 year ago

4.9.93

1 year ago

4.9.91

1 year ago

4.9.92

1 year ago

4.9.90

1 year ago

4.9.89

1 year ago

4.9.88

1 year ago

4.8.88

1 year ago

4.8.87

1 year ago

4.8.86

1 year ago

4.8.85

1 year ago

4.8.84

1 year ago

4.8.83

1 year ago

4.8.82

1 year ago

4.7.82

1 year ago

4.7.81

1 year ago

4.7.80

1 year ago

4.7.79

1 year ago

4.7.78

1 year ago

4.7.77

1 year ago

4.7.76

1 year ago

4.7.75

1 year ago

4.7.74

1 year ago

4.6.74

1 year ago

4.6.73

1 year ago

4.6.72

1 year ago

4.6.71

1 year ago

4.6.70

1 year ago

4.5.70

1 year ago

4.5.69

1 year ago

4.5.68

1 year ago

4.5.67

1 year ago

4.5.66

1 year ago

4.5.65

1 year ago

4.5.64

1 year ago

4.5.63

1 year ago

4.5.62

1 year ago

3.5.62

1 year ago

3.5.61

1 year ago

3.5.60

1 year ago

3.5.59

1 year ago

3.5.58

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

3.5.50

1 year ago

3.5.49

1 year ago

3.4.49

1 year ago

3.4.48

1 year ago

3.4.47

1 year ago

3.4.46

1 year ago

3.4.45

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago