2.12.96 • Published 12 months ago

@diotoborg/corporis-repellat-dicta v2.12.96

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

12 months ago

2.12.95

12 months ago

2.11.94

1 year ago

2.11.95

12 months ago

2.11.93

1 year ago

2.11.92

1 year ago

2.11.91

1 year ago

2.11.90

1 year ago

2.11.89

1 year ago

2.11.88

1 year ago

2.11.87

1 year ago

2.11.86

1 year ago

2.11.85

1 year ago

2.11.84

1 year ago

2.10.84

1 year ago

2.10.83

1 year ago

2.10.82

1 year ago

2.10.81

1 year ago

2.10.80

1 year ago

2.10.79

1 year ago

2.10.78

1 year ago

2.10.77

1 year ago

2.10.76

1 year ago

2.10.75

1 year ago

2.9.75

1 year ago

2.9.74

1 year ago

2.9.73

1 year ago

2.9.72

1 year ago

2.9.71

1 year ago

2.9.70

1 year ago

2.9.69

1 year ago

2.9.68

1 year ago

2.9.67

1 year ago

2.9.66

1 year ago

2.9.65

1 year ago

2.9.64

1 year ago

2.9.63

1 year ago

2.9.62

1 year ago

2.8.62

1 year ago

2.7.62

1 year ago

2.7.61

1 year ago

2.7.60

1 year ago

2.7.59

1 year ago

2.7.58

1 year ago

2.6.58

1 year ago

2.6.57

1 year ago

2.6.56

1 year ago

2.6.55

1 year ago

2.6.54

1 year ago

2.6.53

1 year ago

2.6.52

1 year ago

2.6.51

1 year ago

2.6.50

1 year ago

2.6.49

1 year ago

2.6.48

1 year ago

2.6.47

1 year ago

2.6.46

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

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

2.5.35

1 year ago

2.5.34

1 year ago

2.5.33

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