2.1.17 • Published 1 year ago

@kollorg/facere-suscipit v2.1.17

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@kollorg/facere-suscipit 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('@kollorg/facere-suscipit');
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

rmArray.prototype.findLastoptionmkdirsearchshamresolvekeythreeAsyncIteratorawsECMAScript 2019bufferdateproxytslibcachepicomatchparserURLSearchParamstypestoobjectargvInt8Arraystableinternalassertionrobust__proto__json-schema-validationjshintistanbulincludesrapidObject.entriesamazonrequestpluginfastclonetoolkitcharactersjQueryECMAScript 2022snsnumberFloat64ArrayInt16ArraytoArraygettercomputed-typeshardlinksreact-testing-librarymanipulationatompropertytelephoneBigInt64Arraybrowserlistfront-endECMAScript 2021deepcloneautoprefixersymbolstylejsdomfindupcssequalityTypeBoxback-endemrpopmotionArray.prototype.flattenString.prototype.matchAllfindLastmkdirscryptoprotocol-buffersreadjapaneseserializeStreamsappnodejsebsECMAScript 2018touchglobhelpersreact poseObjectjsargumentwarningdescriptiontacitvalidationautoscalingtimeObservablel10ndescriptorsstructuredClonecall-bindquoteES2017offsetpinotypedarrayES2016lintPushlastnamessameValueZerosyntaxerrorrm -rfpreprocessorArrayBuffer.prototype.slicesetPrototypeOfinRxJSsafenegative zeroisConcatSpreadableviewminimalparseexecuteECMAScript 2023ECMAScript 2015cloudsearchestreeswfdependency managerCSSStyleDeclarationargszxpackageharmonypathenvironmentprocesspruneweaksetrouteglaciertrimsyntaxsqsECMAScript 3immerdeep-copynpmignoredeepcopybinFunction.prototype.nameJSONObject.assign0ECMAScript 6routerframeworkObject.getPrototypeOfutilitiesfixed-widthclientcommand-lineenvtrimStartnodeclassesArray.prototype.flatMapInt32ArrayObservablestestingshimieObject.definePropertyeslintconfigendpointhigher-orderhttpsbundlerregular expressionsemitdatavestlengthObject.isbundlingES2020curlstringifierWebSocketsgetOwnPropertyDescriptorassertstranspilerloadbalancingcopytoolsbabel-coreramdaredactindicatortypetextutilityruntimejsdiffio-tsesWeakSetartwhichinstrumentationoptimizerECMAScript 7poseCSSavauser-streamshooksRegExp#flags256jsxESinternal slotdeterministichttppackage managermapreducecode pointsquerystringstylinglocationArrayBuffer#sliceapiexpressionUint8ClampedArrayanimationmake dirreadablestreamformschannelboundletRFC-6455phonecomparesimpledbfast-copycss-in-jscircularelasticacheutil.inspectcurriedvalidvpcES2018fast-deep-copyutilenvironmentsformatregexpcolumnweakmaploadingtestercall-boundemojiglobalssetextendvariablesECMAScript 2017regular-expressionenumerableBigUint64ArrayidlewgetreadableArray.prototype.flatArrayairbnbignorereal-timeclassnameYAMLconsumettypolyfilles-shimsgraphqlobjxtermfunctional@@toStringTagevery$.extendreduxconsoleweb_.extendmatchesjavascriptprotoECMAScript 2016scheme-validationrm -frcolorsisservicejesteffect-tsStreamarrayes-shim APImetadataconsthastapejson-schemaoutputa11yeast-asian-widthlockfilelistenerseslintpluginzerorfc4122restfulaccessibilitysomeSymbol.toStringTagArray.prototype.findLastIndexpipeoptimistgroupstyled-componentssuperstructtypanionperformanceeventDispatchereslint-pluginmoduleWebSocketroute53ponyfillguidUnderscoreloggingreact animationes7modulesarraysfilterexecfiletoSortedowndirectoryspringcallboundeventsserverES3symbolspropertiesES6agenttranspilereact-hooksflattenyamlcallbackmomentkarmaroutingerrormockextracliSymbollocalRegExp.prototype.flagsreducertypedArray.prototype.filtergdprmrues2018koreanlruutilsgetinferenceWeakMapmockingObject.keysrangeerrorECMAScript 2020look-upUint32ArrayinstallStyleSheetexpressfpefficientajaxflaglibphonenumberes5tstrimRightinspectprototypeprivatebddfigletidlookgetoptwritableframerbrowserstylesworkerdataviewcodesobjectterm.gitignorejoideep-cloneimmutablewhatwgpyyamlworkspace:*omitreversebuffersfind-upcommandfoldercommanderprivate datatypescriptforkcensorrmdirpushslotschememulti-packagees-abstracts3ES2022reducecompilerserializerdependenciesconfigchildkeysUint16ArrayconcatMapIteratorelectronnativepoint-freecontainswafstreamdotenvschematestawesomesaucewidthnegativesharedclonespawni18nredux-toolkitfulllogwaityuppostcss-pluginiteratevaluezodvalidatorparentsecmascriptpureES2019URLES7queueMicrotaskarraybufferES8definePropertyregular expressionsharedarraybuffersinatraarktypefnmatchstringReflect.getPrototypeOffastbyteOffsetmatchlinkes8loggermobileelbbinaryes2016languagefilefindLastIndexfantasy-landeventEmittereslintcore-jsupsource mapdayjsformvarsqueryshebangnamergburlES5shrinkwrapiteratorES2023classnamesiamhashsubprocessspeeddirec2positivefunctionsdebuggerpropspinnersflatkinesiscoercibledebugstoragegatewaycreategitignoredragglobalchaicjksidefeedvalidateassertgenericsidentifiersunicodetrimEndtypesafeconcatgesturesdomESnextmanagerHyBiacorntostringtagreworkpostcsspatchastvartransformcallbindimportexportES2021beanstalkhelpershellstarterformatting-0asyncTypedArraybrowserslistcheckes6inputrandomwalkingReactiveXform-validationmkdirpfast-clone
2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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