3.0.9 • Published 3 days ago

@patrtorg/hic-ex-deserunt v3.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

@patrtorg/hic-ex-deserunt 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/hic-ex-deserunt');
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

validatesuperagentcommanderFloat64ArraytypanionURLSearchParamscolumnsielogES2023ECMAScript 7execjsdommkdirsdiffwalkingreact-hook-formdefinequerystringchildparentsES2017Function.prototype.namelimitedstyleguidees2015es2018WeakMapcollectionoptionTypeScriptshebangcontainsgetPrototypeOflruchromecheckdeepcopybddfullomitECMAScript 2015batchoutputtermsymboldebuggerarrayapolloprefixbeanstalkoptimistframertoobjectpackage.jsonimmutable-0fastclonephoneWeakSetreadabledayjsjasmineanimation$.extendfiltertsenvironmentsArray.prototype.includesescapesetImmediateincludesextendxmlwritevariablesec2css-in-jsstylingArrayBufferObject.isupzod__proto__Rxrangeerrorsetwaapitypeofpreserve-symlinksnamesJSONenvironmentmergecode pointsquotecorerouteisequalcloudfrontcallboundelasticachejapanesebincloneinspectes-shimssafetddtesterwrapInt32ArrayschemasetterObjectlook-upmimesharedgetintrinsicStreamsmoduleMicrosoftassignfixed-widthsortfullwidthrdsIteratorastkeysubprocessrmdirfindLastawesomesaucemetadatataplinewrapparseeventDispatcherarktypefromcall-boundmanipulationansidatatypedarrayscloudwatchprivate dataES6call-bindtc39URLeventsspecdom-testing-libraryObject.keysinstallergenericsmobilegetOwnPropertyDescriptorautoprefixeridlereworkspinnersaccessibilityjavascriptECMAScript 6zeronumbermoveArray.prototype.findLast@@toStringTagArrayBuffer.prototype.sliceoptimizerprivategraphqlintrinsicFloat32ArrayfindLastIndexcoerciblestructuredClonegdprtapeESnextconcurrencygesturesprotobufawsReflect.getPrototypeOfHyBilibphonenumberprototypeagentsearchamazonconsolelengthcolumnsharedarraybufferemitttytransformWebSocketspyyamlprototrimiamqueueendpointbrowserslistbufferexpresspluginchaiECMAScript 2018settingsdropmonorepohooksArray.prototype.containschinesekeyshashinternalgroupiteratesymlinkdependenciesthroatES2018walkdeep-copyestreejsdiffworkflowES2016stringstdlibguidtranspilercommandhasOwnPropertyObservablepackagesconfigurableeast-asian-widthlocalsymbolsdeterministicbrowserlazyreduxpicomatchUnderscorexhrefficienthelpertypesvpcfastisConcatSpreadableArray.prototype.flatMapstyled-componentstoolstostringtagposeajvhascharactersfolderinvariantkinesisspawndeepcloneES5globfunctionalformsignoreargsinstallcreatelimitlastutilitieses5flatMapidentifiersroute53removeformatparsingstreamswget0MapebsObject.entriesclass-validatordeepregexpcallargumentvalidationtelephonetypescriptrssawaitnativetrimStartReactiveExtensionsairbnbclisyntaxerrorArray.prototype.findLastIndexregular-expressionyupconcatMapwidthes8graphql-clientrapidbinaryrequirerandomloggingratelimitruntimetestparserbyteOffsetPusheventEmitterapisqsString.prototype.trimpersistentObject.valuesdatefunctionbinariesECMAScript 2020ECMAScript 5trimRightcloudtrail_.extendatomsomees6getoptnopeES2021regexchromiumPromisestyleTypedArraycloudsearcharraybufferglobal[[Prototype]]proxyshellerrorasterisksfsserializationuuids3reuseshimJSON-SchemasideformattingconcateslintconfiglanguageschemetouchmapreduceserializeexpressionredactCSSStyleDeclarationformmatchvisualmruprogressSymbol.toStringTagshamworkerbluebirdio-tsi18npostcssECMAScript 2022spinnerfastcopyboundintoSortedelbinputl10njQuerydeletefindupclientzxbannercommand-lineprocesswhatwgfnmatchmime-dbavareadablestreamsyntaxtraverseES7lookasyncvalidserializersameValueZeropropertyredirectshrinkwrapArrayBuffer#sliceeslint-pluginregularreact-hooksECMAScript 3assertiterationcolorses2017robustrequestsliceBigUint64Arraynamees2016higher-orderpromisesemrnpmunicoderfc4122bytedebugjshintflagshookformsortedgetmkdirextracloudformationperformanceRegExp#flagsfile systemajaxforkjest
3.0.9

3 days ago

3.0.8

4 days ago

3.0.7

5 days ago

2.0.6

7 days ago

3.0.6

6 days ago

2.0.5

8 days ago

1.0.5

9 days ago

1.0.4

10 days ago

1.0.3

11 days ago

1.0.2

12 days ago

1.0.1

13 days ago