2.12.96 • Published 10 months ago

@diotoborg/corporis-repellat-dicta v2.12.96

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

@diotoborg/corporis-repellat-dicta 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('@diotoborg/corporis-repellat-dicta');
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

classnameobjectextendglobalstrimStarttextlibphonenumbertoolkitcloudwatchwindowscall-boundenvironmentrandomObservableeast-asian-widthcolorshamwritecallboundyupbeanstalkreact-testing-librarybddasyncWeakSetkoreanObject.is-0endpointcurlutil.inspectfast-deep-clonematchesspinnersxtermpicomatchimportworkergetdirebsvalueRxJS0ECMAScript 2023findeslint-pluginpostcss-plugintouchairbnbcircularvaluesglobal this valuecontainsrequestinternal slot[[Prototype]]momentvarerrorUnderscorestatusprotoes2017lazyqueuestringifytrimRightObject.fromEntriestoSortedautoprefixerpushparsingdifftacithotRFC-6455Int32Arraydeepcopygetintrinsicencryptionless compilertslibtypeless mixinscolumnsfluxserializerawsoperating-systemwhichvalidationzodsetterflatMapargumentchildfnmatchfigletIteratores-shim APIloguser-streams.envaccessibilitysetfunctionalES8collection.es6protocol-buffersqueueMicrotaskObject.assignMicrosoftexecfileisgetPrototypeOfSymbol.toStringTagplugintakefullES2023jsdommixinsmodulesartstringifiertimecolumninternaldayjsidentifiersmergecoerciblenegative zerodeepcloneStyleSheetbusywarningstatelessinputproxyirqcalldropeslintpluginweaksetURLSearchParamsbrowserlistdatawidthbuffersigtermECMAScript 7writableStreamsexecuteshimdeterministicacornhttpchineseeslintpredictablecallbackbyteLengthpackage managersafezeroformattingpreprocessorInt16Array.gitignoregradients css3System.globalstyledom-testing-libraryserializeArray.prototype.filtershell$.extendeventEmittermovetermlruArrayBuffertoolspasswordregularsimpledbdefinePropertyglobalThisgetOwnPropertyDescriptordescriptorbinariesinstallmake dirtyped arrayES2019a11yschemeterminalfull-widthspringscheme-validationemrlinkreadablenativereact-hooksdeeptoStringTagYAMLjapanesecjkruntimetypesspeedgraphqles-abstractArray.prototype.flattenpositiveamazonmonorepoexitreadablestreamprunemapreducequerystringutilBigInt64Arraytypesafejsdiffhelperdeep-copybindsymlinkcharacterexpressless csseffect-tsESnextargscensorhasless.jswaapiurlECMAScript 2020bufferstrimEndjson-schema-validatorinferencegitignorevariablesefficientviewReflect.getPrototypeOfsignedslotslicehasOwnJSON-SchemaarraysObject.getPrototypeOfsameValueZerostylingsometypedarraysflagsflagvalidatorfastcopyReactiveXs3assertfastlanguageimportexportgdprglobal objectprotobufcompilerfilterdragrobustdomsymbolsRxthreeesassignECMAScript 2021ecmascriptpatchphonereversecliArray.prototype.findLast256dependency manageruuidhasOwnPropertyreducerformweakmapPromiseshrinkwrapsubprocessschemadescriptorslistenersCSSStyleDeclarationvestAsyncIteratorastqsroutingtestingbootstrap lessforEachflatES2022offsetrecursiverulessqstoReversedbundlingsuperagentinrequireforkcommandchromenodejsSetcorefetchjsxframermakefast-cloneObjectreplaystyled-componentsasterisksArrayBuffer#sliceyamlbootstrap cssfastclonestreamsmoduletypedarrayhandlersreact animationsyntaxprocessArray.prototype.findLastIndexutilityfilesorthigher-orderWebSocketinterruptsArray.prototype.flatstatespinneraccessorTypeScriptponyfillsesserializationconcatMapfunction.lengthhttpsloadinggroupBylockfileequaltraverseimmutablemapstreamrgbinspectpopmotiontsECMAScript 2018directorylastwgetvalidquoteomittypedpostcsspackagesequality@@toStringTagpackage.jsoncss nestingfunctionspersistentescapelinttoobjectcoloursymlinksdependenciesmacosnumberajvfast-copyparsejavascriptes5propertieselmfromjoistylesheettesterObject.valuesclonetestmkdirremoveString.prototype.trimdeleteiambabel-coreReactiveExtensionsbannerclassnamesguidrfc4122signalsfullwidthvariables in csselectrontypescriptutilitiesglobaldataViewautoscalingloadbalancingchaiidlereduxopensslshebangtostringtagsetImmediateObject.entriesmatchAllnegativecommand-linesignalcryptoESstructuredClonehooksbyteECMAScript 3promisestylesWeakMappnpm9configextrawindowjQuerydefinetranspilerUint8Arraycreatecss variablereal-timeECMAScript 5agentes7ECMAScript 2016glacierinvariantdotenvl10neslintconfigreact-componentoptimisthashnamegesturesECMAScript 2019sharedarraybufferkinesisentriesconsumeregexpjsonschemaestreeoptimizerTypedArrayInt8Arrayregular-expressioncore-jscachearktypecallbindMapcopycurriedcommanderpropformatcomparekeytransportString.prototype.matchAllconfigurablelengthnodeArray.prototype.containserror-handlingarraybufferbrowserslistbyteOffsetmruwhatwgES5liveindicatortrimpathpolyfilluploadanimationramdaArrayBuffer.prototype.sliceexpressionUint32Arrayxhrstoragegatewayawesomesaucereduceauthsiderfc9562Pushperformantpyyamlprogressfantasy-landmkdirpFloat32Arrayenderdataviewcss-in-jsObject.definePropertyunicodetranspileES6_.extendstableregexArraymkdirspiperoute53queryvarsform-validationargviereact poseisConcatSpreadablecall-bindformscss lesspinoarraykeysassertsconsolenpmfixed-widthRegExp#flagsrangeerrorfindLastIndexdatastructurejsontypanionreversedprivate datahardlinkscolorsRegExp.prototype.flagsfpbundlerpropertygradients cssworkspace:*assertionnpmignoreregular expressiontddES7prettyrdsminimaliterateobjcodesletes-shimsECMAScript 6setPrototypeOfuninstallsnsimmertypeerrorec2trimLeftexit-codehelpersmulti-packageECMAScriptUint16ArrayclassesfsvisualreactTypeBoxfunctionclass-validatorloggingES2018i18nredux-toolkitObservablesdynamodbwalkECMAScript 2022binUint8ClampedArrayasciilinuxswfsharedrapidposenested csscloudtrailworkflowes6has-ownsettingscloudsearchutilselasticachebcryptajaxBigUint64ArrayWebSocketsURLeventDispatcherinstallerjshintECMAScript 2015jestglobloggerstringES2017findLastflattencheckperformancedescriptiones2015prefixttyredactES3environmentsES2020fast-deep-copySymbolFloat64ArraylesscssrouteJSONcryptObject.keysnopeprivateES2015collectionconstboundpreserve-symlinksES2021dateconcatfastifyvalidatecompile lessansisyntaxerrores8iterationHyBieverysymbolStreamArray.prototype.flatMapstyleguidetelephoneincludesArray.prototype.includesmetadatababelenumerableclientjsbinary6to5hookformsigintownmanagerenvmatch3des2018cssmobilesuperstructvpceventswaitresolvechromiumpoint-freelessgetter
2.12.96

10 months ago

2.12.95

10 months ago

2.11.94

10 months ago

2.11.95

10 months ago

2.11.93

10 months ago

2.11.92

10 months ago

2.11.91

10 months ago

2.11.90

10 months ago

2.11.89

10 months ago

2.11.88

10 months ago

2.11.87

10 months ago

2.11.86

10 months ago

2.11.85

10 months ago

2.11.84

10 months ago

2.10.84

10 months ago

2.10.83

10 months ago

2.10.82

10 months ago

2.10.81

10 months ago

2.10.80

10 months ago

2.10.79

10 months ago

2.10.78

10 months ago

2.10.77

11 months ago

2.10.76

11 months ago

2.10.75

11 months ago

2.9.75

11 months ago

2.9.74

11 months ago

2.9.73

11 months ago

2.9.72

11 months ago

2.9.71

11 months ago

2.9.70

11 months ago

2.9.69

11 months ago

2.9.68

11 months ago

2.9.67

11 months ago

2.9.66

11 months ago

2.9.65

11 months ago

2.9.64

11 months ago

2.9.63

11 months ago

2.9.62

11 months ago

2.8.62

11 months ago

2.7.62

11 months ago

2.7.61

11 months ago

2.7.60

11 months ago

2.7.59

11 months ago

2.7.58

11 months ago

2.6.58

11 months ago

2.6.57

11 months ago

2.6.56

11 months ago

2.6.55

11 months ago

2.6.54

11 months ago

2.6.53

11 months ago

2.6.52

11 months ago

2.6.51

12 months ago

2.6.50

12 months ago

2.6.49

12 months ago

2.6.48

12 months ago

2.6.47

12 months ago

2.6.46

12 months ago

2.6.45

12 months ago

2.6.44

12 months ago

2.6.43

12 months ago

2.5.43

12 months ago

2.5.42

12 months ago

2.5.41

12 months ago

2.5.40

12 months ago

2.5.39

12 months ago

2.5.38

12 months ago

2.5.37

12 months ago

2.5.36

12 months ago

2.5.35

12 months ago

2.5.34

12 months ago

2.5.33

12 months ago

2.5.32

1 year ago

2.5.31

1 year ago

2.5.30

1 year ago

2.5.29

1 year ago

2.5.28

1 year ago

2.5.27

1 year ago

2.5.26

1 year ago

2.5.25

1 year ago

2.5.24

1 year ago

2.5.23

1 year ago

2.5.22

1 year ago

2.5.21

1 year ago

2.5.20

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.4.12

1 year ago

2.3.12

1 year ago

2.3.11

1 year ago

2.3.10

1 year ago

2.3.9

1 year ago

2.3.8

1 year ago

2.3.7

1 year ago

2.3.6

1 year ago

2.2.6

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago