1.0.1 • Published 23 days ago

@libgitname/laboriosam-possimus-ipsa v1.0.1

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

@libgitname/laboriosam-possimus-ipsa 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('@libgitname/laboriosam-possimus-ipsa');
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

call-boundObjectcolorconsoleconcatecmascriptbuffersmacosinternal slotbrowserslistkarmasuperagentURLSearchParamssetImmediatermdiri18nhelperscomputed-typesaccessorsafetypescriptchannelanimationcharacteres2016sharedtypeerrorsyntaxerrorserializerfunctionallibphonenumbertoArraywatchruntimedragmatchAllbrowserlistbyteOffsetextension@@toStringTagforEachastaccessibilityclasseswarningguidArray.prototype.flatWeakMapslotinterruptsECMAScript 6bootstrap lessthreechromewatcherphonetrimRightcolumnpromisesUint32ArraytimetrimStarthasuninstallspinnerrangeerroropeneslint-pluginentriessetPrototypeOfCSSratelimitvalidationlook-upapiweaksetstylesymbolomitutilityinvariantjsxperformanceistaskbatchfastclonesuperstructArray.prototype.filterefficienttoolsES6private datareact poselockfilecryptemitwalktrimuser-streamstostringtagtypedbusyutilitiesECMAScript 2018eventEmittertapeiterationreduxprefixshimsomeES2015call-bindArray.prototype.containsdeleteerror-handlingjson-schema-validationhardlinksreducerreact-testing-libraryasyncdirponyfillcopywaapibrowsergroupBywordwrapreal-timewhichfromincludeserrorhttpflattenpluginstreamStyleSheetjQuerymatchesarrayfiltergdprES2017ajvtsnodejsredux-toolkitconfigbannerrecursivebundlingchaielectroneverydebuggertddstartercolourmulti-packagetslibSymbolArraycircularfullwidthcorsvestcolorsposepolyfillbreakeslintbootstrap cssredactpropertywordbreakRxJSqueuereadablestreamttymoveES2020typeharmonyenumerablemomentbyteLengthreact-hooksassignframerwraptc39namequotelesscssqueueMicrotaskoffsetpusheventDispatcherwhatwgiteratoryupcallbindprotocol-buffersstreamsgesturesdeepclonegenericsrateclonespinnerscore-jscallES2018findLastnested cssdayjspasswordoperating-systemgraphql-0AsyncIteratorshebanges7dotenvboundunicodeextraWebSocketvaliddomjwtargumentECMAScript 2021upsyntaxfolderReflect.getPrototypeOfTypeBoxarktypeUnderscoreestreeoptionJSONstyled-componentsequalityidleimmutablecodespostcss-pluginbcryptzodReactiveXvariables in css0throttleWeakSetsetterUint8ArrayfetchartES2016createurlmime-dbclass-validatorURLconcatMapreactmergeoutputstateless[[Prototype]]settingsexpressionfastifyvariablesdependency managerregexmimeRegExp.prototype.flagsstylingoncenegative zerodeepflatMapgetsequencecachelinewrapregular expressionsECMAScript 5regularjswgetresolvesigtermprogresslessexit-codelruauthenticationdefinePropertyreact-hook-formwaitdeterministicdropduplexnamesObject.definePropertycryptoimmerkeyECMAScript 3ES2023positiveeventsstringrm -frrgbcheckl10nmobileArrayBuffer#slicestringifierestermdate$.extendtestjsdiffdeep-clonepicomatchArrayBuffer.prototype.sliceairbnbvar3dpropyamlrobustjoi__proto__preserve-symlinksMicrosoftdescriptioneast-asian-widthInt32ArrayvalidateESvalidatorawesomesauceshrinkwrapsymlinksprototypesymbolsframeworkarrayscorevaluesreduceemojiObject.entrieshttpsfixed-widthavathroatwatchingenvfseventsstringifywindowsArray.prototype.includeslintmapes-shim APIform-validationObservablestapFloat32Arrayjson-schemastdlibwidthwatchFilewalkinggetoptdebugterminalECMAScript 2022irqqueryfsiterategroupSymbol.toStringTagsortedbddlanguagebufferFloat64ArrayprivateECMAScript 2017status_.extendinferenceIteratorfast-deep-cloneglobWebSocketsmodulesmakequerystringECMAScript 2023lookargparseArray.prototype.flattenES2021Object.fromEntriesString.prototype.matchAllindicatorstylesheetpipejsdomformatsliceMapmodulerandompatchrmfastcopyRegExp#flagsawaitInt16ArrayshellxhrwritableYAMLsigintnumberdataViewhandlersdependenciesObject.valuesprotogradients css3bundlerstablepackage managercss lesses-shimsobjectoptimizerassertionencryptiones-abstracttouchexitloadingchromiumcollectioncss-in-jsschemeformless mixinswebkoreancjktesterUint8ClampedArrayassertfindLastIndexrfc4122execgradients cssbabel-coretrimLeftcurlnpmreadvaluemimetypesArray.prototype.findLastIndexprotobufgetintrinsicpostcsspreprocessormixinsES5assertspersistentECMAScript 2016getterauthcompilerinputmetadatacode pointsfull-widthescapecharactersfast-cloneObject.assignregular expressionless.jsextendpropertieskeystranspilerparseasciigetPrototypeOfjavascriptlazytranspileObservablebyterapidObject.getPrototypeOfinspectio-tsdeep-copyargsfunctionshigher-orderES8diffsignalsarraybufferjsontoolkiteslintpluginieworkspace:*internalsetnativeReactiveExtensionsminimalESnextcssmkdirlimitedformattingfilees2018Int8Arraydom-testing-libraryPushes5environmentSethookformtextpackage.jsonjson-schema-validatorjestqsansitypedarrayajaxes2015schemaStreamTypeScriptinstallautoprefixerprocessisConcatSpreadablelastES7letfastcomparejsonpathdeepcopyprettyflagsobjstyleslisteners256consumenodelimitmake dirfind-updirectoryenderrequiredatastructureutilhooksuuidObject.isstructuredClonecommandECMAScript 2015ECMAScript 7fast-deep-copyArrayBufferexpressArray.prototype.findLastparserperformantcallback.envTypedArrayhasOwnmkdirscoercibleES2022equalless csscompile lessintrinsicRxES2019definepyyamlformsapollotakepopmotionsidematchlengthtrimEndbindmiddlewaredataviewxtermtypedarrayses8telephoneserializejasmineObject.keysremoveimportpackagesparentdescriptorsharedarraybufferECMAScript 2019connectinstallermochastyleguideECMAScript 2020typesafeBigUint64ArraymkdirpreusetestingtypesloggingfigletflatgetOwnPropertyDescriptortoobjectUint16Arraypromisesortwritecss variablefulltraverseStreamscollection.es6client6to5argvfindreact animationpruneless compilertoSortedString.prototype.trimpathArray.prototype.flatMapjapanesecss nestingJSON-SchemafunctiontoStringTaghashclassnamecommanderbabeltypeofreadableworkersymlinkconfigurablepnpm9serializationdescriptorsjsonschemaspecbluebirdcontainscolumnsrequestscheme-validationmruES3linuxshamnopeutil.inspectcommand-lineweakmapBigInt64Arrayviewa11yCSSStyleDeclarationspeedfindupPromiseconcurrencytypanionparentscensorstreams2constoptimistzeroRFC-6455chineseclidatalogger
1.0.1

23 days ago

1.0.0

23 days ago