6.6.99 • Published 12 months ago

@patrtorg/ratione-magnam v6.6.99

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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

12 months ago

6.6.98

12 months ago

6.6.97

12 months ago

6.6.96

12 months ago

6.6.95

1 year ago

6.6.94

1 year ago

5.6.94

1 year ago

5.6.93

1 year ago

5.6.92

1 year ago

5.5.92

1 year ago

5.5.91

1 year ago

5.5.90

1 year ago

5.5.89

1 year ago

5.5.88

1 year ago

5.5.87

1 year ago

5.5.86

1 year ago

5.5.85

1 year ago

5.5.84

1 year ago

5.5.83

1 year ago

5.5.82

1 year ago

5.5.81

1 year ago

5.5.80

1 year ago

5.4.80

1 year ago

5.4.79

1 year ago

5.4.78

1 year ago

5.4.77

1 year ago

5.4.76

1 year ago

5.4.75

1 year ago

5.4.74

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.72

1 year ago

4.3.72

1 year ago

4.2.72

1 year ago

4.2.71

1 year ago

4.2.70

1 year ago

4.2.69

1 year ago

4.2.68

1 year ago

4.1.68

1 year ago

4.1.67

1 year ago

4.1.66

1 year ago

4.1.65

1 year ago

4.1.64

1 year ago

4.1.63

1 year ago

4.1.62

1 year ago

4.1.61

1 year ago

4.1.60

1 year ago

4.0.60

1 year ago

4.0.59

1 year ago

4.0.58

1 year ago

4.0.57

1 year ago

4.0.56

1 year ago

4.0.55

1 year ago

4.0.54

1 year ago

4.0.53

1 year ago

4.0.52

1 year ago

3.0.52

1 year ago

3.0.51

1 year ago

3.0.50

1 year ago

3.0.49

1 year ago

3.0.48

1 year ago

3.0.47

1 year ago

3.0.46

1 year ago

3.0.45

1 year ago

3.0.44

1 year ago

3.0.43

1 year ago

3.0.42

1 year ago

3.0.41

1 year ago

3.0.40

1 year ago

3.0.39

1 year 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