1.1.16 • Published 10 months ago

@swenkerorg/adipisci-quod v1.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

1.1.15

10 months ago

1.1.14

10 months ago

1.1.13

10 months ago

1.1.12

10 months ago

1.1.11

11 months ago

1.1.10

11 months ago

1.1.9

11 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago