2.12.96 • Published 2 years ago

@diotoborg/corporis-repellat-dicta v2.12.96

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

2 years ago

2.12.95

2 years ago

2.11.94

2 years ago

2.11.95

2 years ago

2.11.93

2 years ago

2.11.92

2 years ago

2.11.91

2 years ago

2.11.90

2 years ago

2.11.89

2 years ago

2.11.88

2 years ago

2.11.87

2 years ago

2.11.86

2 years ago

2.11.85

2 years ago

2.11.84

2 years ago

2.10.84

2 years ago

2.10.83

2 years ago

2.10.82

2 years ago

2.10.81

2 years ago

2.10.80

2 years ago

2.10.79

2 years ago

2.10.78

2 years ago

2.10.77

2 years ago

2.10.76

2 years ago

2.10.75

2 years ago

2.9.75

2 years ago

2.9.74

2 years ago

2.9.73

2 years ago

2.9.72

2 years ago

2.9.71

2 years ago

2.9.70

2 years ago

2.9.69

2 years ago

2.9.68

2 years ago

2.9.67

2 years ago

2.9.66

2 years ago

2.9.65

2 years ago

2.9.64

2 years ago

2.9.63

2 years ago

2.9.62

2 years ago

2.8.62

2 years ago

2.7.62

2 years ago

2.7.61

2 years ago

2.7.60

2 years ago

2.7.59

2 years ago

2.7.58

2 years ago

2.6.58

2 years ago

2.6.57

2 years ago

2.6.56

2 years ago

2.6.55

2 years ago

2.6.54

2 years ago

2.6.53

2 years ago

2.6.52

2 years ago

2.6.51

2 years ago

2.6.50

2 years ago

2.6.49

2 years ago

2.6.48

2 years ago

2.6.47

2 years ago

2.6.46

2 years ago

2.6.45

2 years ago

2.6.44

2 years ago

2.6.43

2 years ago

2.5.43

2 years ago

2.5.42

2 years ago

2.5.41

2 years ago

2.5.40

2 years ago

2.5.39

2 years ago

2.5.38

2 years ago

2.5.37

2 years ago

2.5.36

2 years ago

2.5.35

2 years ago

2.5.34

2 years ago

2.5.33

2 years ago

2.5.32

2 years ago

2.5.31

2 years ago

2.5.30

2 years ago

2.5.29

2 years ago

2.5.28

2 years ago

2.5.27

2 years ago

2.5.26

2 years ago

2.5.25

2 years ago

2.5.24

2 years ago

2.5.23

2 years ago

2.5.22

2 years ago

2.5.21

2 years ago

2.5.20

2 years ago

2.4.20

2 years ago

2.4.19

2 years ago

2.4.18

2 years ago

2.4.17

2 years ago

2.4.16

2 years ago

2.4.15

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.4.12

2 years ago

2.3.12

2 years ago

2.3.11

2 years ago

2.3.10

2 years ago

2.3.9

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.6

2 years ago

2.2.6

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago