6.6.99 • Published 10 months ago

@patrtorg/ratione-magnam v6.6.99

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

@patrtorg/ratione-magnam 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('@patrtorg/ratione-magnam');
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

cloudsearchcreatebootstrap lesspredictablepackageshardlinksESnextform-validationqueryflagschromiumsigintclassnamecompilerspecdataviewcurl3dArrayBuffer.prototype.slicerulesregular expressionsignalelasticacheeffect-tsBigUint64ArrayzerouploadmakebyteOffsetformattestingajvsyntaxWebSocketfnmatchjQueryfunctionaldeep-clonefromdescriptorsmergeserializationRegExp.prototype.flagsArray.prototype.flatString.prototype.trimmatchrecursiveprotoaccessorRxfetchreal-timereact animationexpressionfilterredactreadassertsxtermexecutetypeofglacierreadablesharedarraybufferpreprocessorpostcss-pluginObservabledeep-copyes-shim APIjsonschematstoolsless mixinsarraytouchsortedclientvisualArray.prototype.flatMapimmeroptimizerindicatorcolourgraphqlselfvpcvaluesinterruptsObject.fromEntriescollection.es6StyleSheetgettergdprObjectqueuecloudformationES2023equalityFunction.prototype.namecliprotobufjsonacornglobal this valuequerystringreduxES2017prunettyES3matchAllbinarylocalcall-bindtoSortedsymbolsdropES2018estreemkdirsserviceES2019operating-systembcrypttermsymbolkeysspinnersnodediffsymlinksECMAScript 7make dirhttpnamecolorconcatpostcsssuperagentfastcloneexitspinnerhelperscharacterimmutabledom-testing-librarydescriptorstoragegatewayconsolejson-schemahookformdescriptionECMAScript 3json-schema-validationnopeworkervarsTypeScriptforEachES5genericsInt16Arraysettervaluepreserve-symlinksiterateviewasterisksruntimeprettyrdsObject.isworkflowsetImmediategitignorebufferfluxlastArray.prototype.includeschinesedraghotfastsetPrototypeOfmodulees2018veststreamsStreamsenderback-end.gitignoredatastructurelengthtypedarrayglobalsshellbannerjssesURLclassesURLSearchParamsdependenciespersistentargvextraurlenvironmentsexecelectronCSSignorecryptoerror-handlingquotematcheshasOwnPropertyECMAScript 2020execfiles3ES2022structuredClonejwtyupformattingiambddtranspilelesschromefast-deep-copyfull-widthvalidenvobjectbootstrap cssloadbalancingentriesArray.prototype.findLastes-abstractjshintdateless.jsminimalreact-hook-formless compilerrangeerrorassertamazonwindowsmobileObject.entriesesajaxWeakMappnpm9private dataoptimistcss-in-jsapifunction.lengthwindowbeanstalkgetoptenvironmenttacitvariables in csskinesisstylingpolyfillcallbindcontainsinternal slotRFC-6455bundlerredux-toolkitshimsortcloudtrailHyBiSettypesgetPrototypeOfauthmulti-packageWeakSet.envweakmapconfigurablecall-boundterminalspeedObservablesstyled-componentsdeepcopymapconstdataViewbabelsymlinkrapidvalidatorimportdomESsettingsassigntaketypees2015ECMAScript 2017typeerrorartdotenvloadingtyped arrayjestUint16ArrayperformanceendpointmixinsyamlJSONglobcloudfrontpasswordparser-0serverES7Float64Arraycss variablewaapiworkspace:*toolkitidentifierseventselbECMAScript 2023react poselesscssbyteLengthstringifierkeyboundutilityflatMappromiseless cssObject.getPrototypeOfInt32Arrayregular-expressionpathphonemetadatadependency managerutilitieszxtimearraybufferECMAScript 5ponyfillefficientnamesbrowserlistdatargbcorelruspawnstyleguidehas-ownasciioffsetnumberes-shimssafemonorepounicodepipebabel-corees2016regextrimfile systemairbnbfindLastnodejsObject.assignlintmacosharmonybindisConcatSpreadablesameValueZerosignalswgetenumerablewhichargumentsomeerrorjson-schema-validatorES2020callbackrequestWebSocketsfs0UnderscoreES2015eventEmittermockes2017definePropertyECMAScript 2022package.jsonobjnested cssregulargradients css3sequenceawshigher-orderchildcomputed-typesUint32ArrayeslintSymbolweaksetRxJSreducerECMAScript 2015schemaglobalThissuperstructreadablestreamqsprotocol-buffersauthenticationtrimEndflatdayjsplugincheckirqastserializelinkomitglobal objectaccessibilityTypeBoxremovepoint-freestreamtc39trimLefttypanionFloat32ArraysyntaxerrorECMAScript 2018textutilansistableautoprefixersharedelm256robustArray.prototype.filteriesimpledbscheme-validationbinInt8Arrayvariablesa11ygradients cssbyteutil.inspectprefixuninstallincludessubprocessmkdirpiswaf_.extendcachenegative zerofilexhrhashES2016class-validatorlockfilestatelessnpmignoredirectoryeveryinloggerfunctiongroupcommand-linehelpercensorstatusnegativejapanesefixed-widthArrayBufferassertionES2021settddmanagerthreepyyamlfullwidthframerfigletIteratorargsfastcopybundlingnpmmruwaiteslintpluginmomentbinariesES6openssl
6.6.99

10 months ago

6.6.98

10 months ago

6.6.97

10 months ago

6.6.96

10 months ago

6.6.95

10 months ago

6.6.94

10 months ago

5.6.94

10 months ago

5.6.93

10 months ago

5.6.92

10 months ago

5.5.92

10 months ago

5.5.91

10 months ago

5.5.90

10 months ago

5.5.89

10 months ago

5.5.88

10 months ago

5.5.87

10 months ago

5.5.86

10 months ago

5.5.85

10 months ago

5.5.84

10 months ago

5.5.83

10 months ago

5.5.82

10 months ago

5.5.81

11 months ago

5.5.80

11 months ago

5.4.80

11 months ago

5.4.79

11 months ago

5.4.78

11 months ago

5.4.77

11 months ago

5.4.76

11 months ago

5.4.75

11 months ago

5.4.74

11 months ago

4.4.74

11 months ago

4.4.73

11 months ago

4.4.72

11 months ago

4.3.72

11 months ago

4.2.72

11 months ago

4.2.71

11 months ago

4.2.70

11 months ago

4.2.69

11 months ago

4.2.68

11 months ago

4.1.68

11 months ago

4.1.67

11 months ago

4.1.66

11 months ago

4.1.65

11 months ago

4.1.64

11 months ago

4.1.63

11 months ago

4.1.62

11 months ago

4.1.61

11 months ago

4.1.60

11 months ago

4.0.60

11 months ago

4.0.59

11 months ago

4.0.58

11 months ago

4.0.57

12 months ago

4.0.56

12 months ago

4.0.55

12 months ago

4.0.54

12 months ago

4.0.53

12 months ago

4.0.52

12 months ago

3.0.52

12 months ago

3.0.51

12 months ago

3.0.50

12 months ago

3.0.49

12 months ago

3.0.48

12 months ago

3.0.47

12 months ago

3.0.46

12 months ago

3.0.45

12 months ago

3.0.44

12 months ago

3.0.43

12 months ago

3.0.42

12 months ago

3.0.41

12 months ago

3.0.40

12 months ago

3.0.39

12 months ago

3.0.38

1 year ago

3.0.37

1 year ago

3.0.36

1 year ago

3.0.35

1 year ago

3.0.34

1 year ago

3.0.33

1 year ago

3.0.32

1 year ago

3.0.31

1 year ago

3.0.30

1 year ago

3.0.29

1 year ago

3.0.28

1 year ago

3.0.27

1 year ago

3.0.26

1 year ago

3.0.25

1 year ago

3.0.24

1 year ago

3.0.23

1 year ago

3.0.22

1 year ago

3.0.21

1 year ago

3.0.20

1 year ago

3.0.19

1 year ago

3.0.18

1 year ago

3.0.17

1 year ago

3.0.16

1 year ago

3.0.15

1 year ago

3.0.14

1 year ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.11

1 year ago

3.0.10

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

2.0.8

1 year ago

2.0.7

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