2.0.16 • Published 1 year ago

@kollorg/ad-soluta v2.0.16

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

@kollorg/ad-soluta 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/ad-soluta');
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

varsglobalThisbeanstalkUnderscore_.extendclassnameswalkhasOwnPropertychromiumcompilernpmignorehttpsECMAScript 2017s3dependency managerStyleSheetobjsqsECMAScript 2020proprouterfile systemrandomSetsettingscollectionidapifetchdeepcopytrimStarturlutilitiesgetPrototypeOftypedarraysgetoptincludes@@toStringTagtoReversedSystem.globaldataviewavaArrayBuffer.prototype.slicecall-boundidentifiersRxJSfigletnumberjshintqueuekarmafastclonecall-bind$.extendwgetenumerablefunctionstransportprogressgetOwnPropertyDescriptorES2022eslintfindLastIndexES2021animationweaksetnamesStreamruntimehtmlsometacitminimalsidecore-jsUint8ClampedArrayinternalpackagesregexlistenersclassnamecoveragecloudformationInt32ArrayxhrES3performancepolyfillflatMapmatchAllweakmapES2018Array.prototype.includesstyleguideflattenresolvelinkcloudwatchautoscalingloadbalancinghttpTypeBoxpropertycurriednodejsrmcryptodomECMAScript 2021jasminebinparentansiwalkinglibphonenumbertapdayjswarningreversedcallbindpostcss-pluginswfserializeRxcoerciblemetadataguidTypeScripteventDispatchersyntaxerrorextendECMAScript 6Array.prototype.filterbyteOffseteast-asian-widtheffect-tsconfigexpresschaiObject.keysassertionvestlengthdrages-abstractqueueMicrotaskhashfast-copyselfmapreducewaitstylingproxyimportexportpathefficientECMAScriptcolors3dbyteasynctoArrayECMAScript 7trimRightfast-clonestabletranspilerobustcomputed-typessharedarraybufferES6tc39locationstringifypostcss.gitignoreutilregularredactflatsetterdataViewhookformreal-timedirupgettertrimLeftargsArray.prototype.findLastIndexuninstalllogignoreharmonyECMAScript 2023columnxtermStreamsformatisObjectHyBicomparepluginschemeconfigurablees2016processstreamtypescriptremovereworknativefromtslibexpressiones8npmgetrulessetImmediateworkspace:*fantasy-landecmascriptposethreemkdirsES2020workflowreact-testing-libraryJSONjson-schemaspawnbundlingfindLastshebangclass-validatorzxes5superagentbabel-coresymbolclassesmapebsisConcatSpreadableform-validationeslint-pluginsubprocessReactiveExtensionsURLSearchParamsfsprotobufwritetelephonenegative zeroinstalljestpackage managerbusyArrayBufferperformantAsyncIteratortoolkitqsshrinkwrapdeep-clonetermCSSStyleDeclarationframeworkamazonhigher-orderpackage.jsonbuffera11yfeedtoobjectnopepositivemkdiremituser-streamsunicodecurlcirculardirectoryinferenceregexpes2015sessnsTypedArrayUint16ArrayenvironmentObject.isargumenthas-ownagentredux-toolkitwhichWeakSetendpointcsstextclientdefinersspackageInt8Arraycss-in-jsglobal this valuecolourPromisedefinePropertycallboundreact-hooksmanager
2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

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

2.0.5

1 year ago

2.0.4

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