1.1.16 • Published 7 months ago

@swenkerorg/adipisci-quod v1.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@swenkerorg/adipisci-quod Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value negative zero? === will lie to you.

Example

var isNegativeZero = require('@swenkerorg/adipisci-quod');
var assert = require('assert');

assert.notOk(isNegativeZero(undefined));
assert.notOk(isNegativeZero(null));
assert.notOk(isNegativeZero(false));
assert.notOk(isNegativeZero(true));
assert.notOk(isNegativeZero(0));
assert.notOk(isNegativeZero(42));
assert.notOk(isNegativeZero(Infinity));
assert.notOk(isNegativeZero(-Infinity));
assert.notOk(isNegativeZero(NaN));
assert.notOk(isNegativeZero('foo'));
assert.notOk(isNegativeZero(function () {}));
assert.notOk(isNegativeZero([]));
assert.notOk(isNegativeZero({}));

assert.ok(isNegativeZero(-0));

Tests

Simply clone the repo, npm install, and run npm test

typeyupphonedeep-copyarktypetesterSymbolprotocol-buffersArrayBuffer.prototype.slicespeedramdalibphonenumberomitnopesharedpropsyntaxerrorcore-jsspringnodejsArray.prototype.flattransformoptimizerdebuggertypedmovewhichpreprocessorfastifyassertsECMAScript 2016coveragebrowserslistprototypebinaryasteriskspackage.jsonclassesiteratesameValueZerotypeoftsinputes2018espreeconsumeassignmodulesgenericskinesiswriteBigUint64ArrayjasmineimmerArrayclientfetchstyled-componentsagentdefinePropertyastobjecttapimportexportvarcjkgesturescontainsconcatMappopmotionfunctionfindupUint8Arrayreadablestreamawsstarteruninstallframeworkrobustjson-schemaapollorequestintranspileestreejsdomfolderairbnbqueueMicrotaskObject.assignFloat32ArrayartelbrestfulURLSearchParamsisConcatSpreadableawesomesaucetoStringTaggetOwnPropertyDescriptorserializerloadbalancingintrinsicHyBifeedextendfastcopyregexfunctionsECMAScript 5sidetoobjecthttpsdataViewextra0StreamsfullfnmatchmoduleInt32ArraymkdirsES8asciitextECMAScript 2019environmentposeFunction.prototype.nameECMAScript 7mrucallboundsymbolsCSSfast-clonetraverseURLwaitcircularIteratorinspectcollection.es6iteratorcsssortflagsregular expressionsRxmapreduceInt16ArrayeslintpluginlanguageArray.prototype.filtermkdirglobal objectES2016trimEndroute53chromiumnpmignorejsxRegExp#flagssyntaxoffsetES5globregular-expressionCSSStyleDeclarationsuperagentsymlinksrm -frReactiveXweaksetemojiajvbusycomputed-typesenvironmentsformattingdefinebyteOffsetWeakMapBigInt64Arrayprotowalkingtransportexecasyncbyteletvestcensorendpointformdirgdpransiutilutilitieseffect-tses2015slotkoreanexecutehookformjavascriptflatMapstablebinariesanimationisdynamodbreworkES6commandmake diroptionStyleSheetcryptoArrayBuffer#slicecodesnodetrimRightprettyFloat64ArrayvalidatebabelStreamgetPrototypeOfES7numberajaxregexpjestreadablefpweakmapslicekeysreact-hook-formstreamtoReverseddominstallerexpressmulti-packageiamrssECMAScript 2015dataviewio-tspathwidthes2017typescriptlooktestingi18nES2015beanstalkemrchannelcurriedInt8Arrayredux-toolkitdependenciespoint-freedescriptorses8form-validationutilityObject.fromEntriesappcoerciblelogscheme-validationtouchObjectrgbinvariantcharactersshebangreduceES2022sortedobjAsyncIteratorwarningstylingcode pointstimebddflagassertion__proto__includescommanderUint8ClampedArrayArray.prototype.containslink[[Prototype]]reversedoutputprogressfast-copyvpcstylesJSONargselectroncolumnsconfigurabletostringtagconfigarraysfullwidthsymbolbintapeYAMLparentsreact-testing-libraryaccessorinternalsafetoArraymatchAllhigher-ordertakechaies-shimsa11ysettingspropertyrmwgetcolorrecursivees6bannertrimLeftruntimestringifyparentjson-schema-validatorreact-hooksmobiledataglobalThisdragcomparejsnamehasOwnPropertycloudfrontenderhardlinksmapglobalsinternal slotsuperstructkarmavariablesargumenteventDispatchershimUint32Arrayreact posegettergroupttySymbol.toStringTagistanbuluuidMapzodharmonylocationentriesassertproxyperformanttoolkiteslintconfigpolyfillowntelephonerandommochafindstyleefficientvisualyamltermperformancefromsqsfsrapiddeepdescriptorvalidconstcall-bindECMAScript 2022hasOwnlruhashviewcharacterPromisejapaneseexpressionenvreact animationtslibhelpershellArrayBufferchromeesoptimistpatcheventsargvecmascriptcloudformationhas-own
1.1.16

7 months ago

1.1.15

7 months ago

1.1.14

7 months ago

1.1.13

7 months ago

1.1.12

7 months ago

1.1.11

7 months ago

1.1.10

7 months ago

1.1.9

7 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago