1.0.0 • Published 27 days ago

@asdfgertyjhnpm/quibusdam-harum-optio v1.0.0

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

@asdfgertyjhnpm/quibusdam-harum-optio 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('@asdfgertyjhnpm/quibusdam-harum-optio');
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

execES2015package.jsonString.prototype.matchAllsignalscorsmergemovejsonschemaslicelistenerslook-upcurlbannerrm -frtextmoduleratelimitbabelstylebundlingcolumnsanimationwebregular expressionspropbusymruecmascriptdeepclonelaunchMapES2017valuesfileflattenappttysortedprivate datathroatES2022typedarraysArray.prototype.containsvariablespoint-free3dfindLastIndexoptimizerStyleSheettypedphonermdirworkspace:*endercensormatchesreal-timecolornodejsstreamlinewrapincludeses-abstractlanguageconcatgroupinvariantparserbatchObject.assignlogtypepicomatchSymbolstatelessoptionWebSocketexiterror-handlingescapeFloat64Arrayl10npreprocessorwordbreakcharacterjapanesees-shimsArray.prototype.filterenvdefinechromelibphonenumbertsstabledeep-copybindbootstrap lessprogressposehookformomitregexputilitiesWeakMapbuffersextendtapreadAsyncIteratorMicrosoftobjectscheme-validationRegExp.prototype.flagssigtermTypedArrayutilitypolyfillhttpshelpersapiyupgetconfigspringInt32Arraylastcss-in-jstranspilerSettostringtagtimeentrieshigher-orderbundleruninstallassertsassertReactiveXshamopenpnpm9jQueryjasminecall-bindes2016PromiseECMAScript 2022weakset256browserSymbol.toStringTagfastcopymixinsquoteregexfile systempipecopypackagevalidationmkdirshardlinkssymlinkwaapipropertiesfull-widthjsreactgetoptsetterhandlersloggermatchfast-deep-copypostcssjsonpathviewObjectnpmsanitizeaccessorfunctionwhatwgJSON0macosdataviewloadingspinnercommanderbabel-corecontainsclientconcurrencyjoiES8bcryptjson_.extendfromES2023WebSocketsunicodeauthwidthpathletmake dirless csswatchfast-cloneES3koreanjson-schema-validationcommand-linearraybufferHyBieverystylesheetnested cssshimlookRxutilECMAScript 6ArrayBuffer.prototype.sliceES2018streamssymbola11ypreserve-symlinksES2016Object.iswaitReactiveExtensionsclass-validatordefaultobjajaxnamesomeexpressionxdg-openthreeurlgdprInt8Arrayflages2017executableprunesidesetPrototypeOftrimfind-upinputstyleguidedrop@@toStringTagrangeerrorESnextInt16ArraywatchingArrayBufferrfc4122outputprototypetelephonefunctionalcallbackeslinttermjson-schemaclassnamesqueuetoStringTaglengthkeyredux-toolkites6jsxdayjsmapcalldragwriterapidnodelesscssshellcmdaccessibilityECMAScript 3Array.prototype.findLastIndextestingauthenticationconfigurabletrimStartbddES5Streamsgradients css3utilsexit-codeurlsObject.definePropertygetPrototypeOfmulti-packageinternal slotgettertakecallbindexpress[[Prototype]]bufferdeterministicqsrm -rfflatsuperstructfastcloneconnectharmonytacittoolsxhrdiffconcatMappackage managerECMAScript 2023groupBystringifierTypeBoxremovedeletechildargparseextraeslint-pluginextensionirqECMAScript 2020reuseencryptiondeepcopydescriptorcurriedisprocessfetchcss variableinspecttypesafetypanionECMAScript 2018__proto__runtimearktypetoolkitfunctionsprotocol-bufferstc39argviteratetestfindpositivelessbyteequalityUint32ArrayeventEmitterpatchES2021core-jsreadablelimitedECMAScript 7collection.es6immutablerequestes2015operating-systemless compilerfantasy-landpackagesuser-streamsRxJSmime-dbes8propertyduplexperformantcss lessguidcomparemobilevalidatekeysnumberesinstallreadablestreamrequirechannelcollectionarraysvestworkerarrayjsdiffjson-schema-validatorless.jscliJSON-Schemahasreact-hooksObservableprivatermconsoleRegExp#flagsless mixinscolumnreact posesanitizationmiddlewareES2019Object.valuesvalidatorinferenceidlelinuxfoldervariables in cssserializeremojicall-boundopenerconsumemimetypeslintassertionxdgterminaldefinePropertyargssyntaxerrorWeakSetdeepes-shim APIclassnamebrowserlist-0Uint8ClampedArraybyteOffsetpluginartzodbyteLengthtypeofcompile lesscharactersexeeslintconfigtslibstatusflatMapwhichio-tsrateformsObject.entriesformatspawnjsdomlinktypedarrayfast-copypopmotionassignlockfiledeep-clonecircularansieventsschememomentcryptdatastructureestree
1.0.0

27 days ago