3.11.96 • Published 12 months ago

@kollorg/a-ducimus v3.11.96

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

@kollorg/a-ducimus Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Are these two values conceptually equal?

Example

var isEqual = require('@kollorg/a-ducimus');
var assert = require('assert');

var primitives = [true, false, undefined, 42, 'foo'];
primitives.forEach(function (primitive) {
	assert.equal(isEqual(primitive, primitive), true);
});
assert.equal(isEqual(/a/g, /a/g), true);
assert.equal(isEqual(/a/g, new RegExp('a', 'g')), true);
assert.equal(isEqual({ a: 2 }, { a: 2 }), true);
assert.equal(isEqual([1, [2, 3], 4], [1, [2, 3], 4]), true);
var timestamp = Date.now();
assert.equal(isEqual(new Date(timestamp), new Date(timestamp)), true);

Want to know why two values are not equal?

Will return an empty string if isEqual would return true - otherwise will return a non-empty string that hopefully explains the reasoning.

var whyNotEqual = require('@kollorg/a-ducimus/why');

assert.equal(whyNotEqual(1, 1), '');
assert.equal(
  whyNotEqual({ a: 1 }, { a: 2 }),
  'value at key "a" differs: numbers are different: 1 !== 2'
);

Tests

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

animationcharacterstypereadablestreamvalidatorcorerouterecursiveconstprefixObject.isfilterespreeInt8Arraycall-boundObject.keysserializationArray.prototype.findLastbrowserlistcompilerreduxjestendpointtoolsIteratorRFC-6455propUint8ArrayswfSymbol.toStringTagarraybufferfigletnpmtsroute53setpipeuser-streamsbufferprotobufclassnamestreamfsiteratequerymoveshebangstylesshellutil.inspectjson-schema-validationloadbalancingfolderlogatomtransportphoneequalityArrayBufferjsxast_.extendreducervisual[[Prototype]]extendtacitPromiseformsdiffemojiformattingsuperstructfullautoprefixerreadablefunctiongeteveryimmerYAMLwafES8argvfnmatchArrayBuffer#sliceECMAScript 2015reusefileECMAScript 2017nameinjQueryhardlinkschildmobiledataViewwarningdeep-copychinesereact posemomenta11yloadingcloneobjectMicrosoftimmutablehas-ownforkiteratorconcatMapcurlschemamodulestrimArrayec2pathreact animationweaksettrimRightfpbundlerReactiveXMapfromchairestmodulemake dirconcatcallbackbyteinferenceeslint-plugintoolkitsortedtddebsfpsfast-deep-copyrm -rfprotoargumentwriteObject.assignhasOwnreact-hook-forminternaljapaneseletoptionresolvetoStringTagarrayssideio-tsescapeinstallworkspace:*collectionoffseteslintdirectorytypesafepyyamlglobal this valuehookspoint-freezerorssWeakMapUint16ArrayinputbundlingArray.prototype.flattenES2018extrarandomroutingserializercompareInt32ArraytoReversedhtmlpushworkerdropproxyinspectECMAScript 6setImmediatehashgroupefficienttextregularJSONelasticachesameValueZerodeepselfjscurriedregexsearch-0mochaframerbrowseroptimizerwaapispeedgitignorefunction.lengthObservablestartercloudsearchiamlibphonenumberwalkrobusttypesjoisymlinkstoobjectobjStyleSheetrfc4122computed-typesUint32ArrayinvariantfastES2015touchWeakSetInt16ArraytypedconfigurablebyteLengthclass-validatores8localtrimEndmapapistableoncerapidutilitiesglobharmonyprunecheckcollection.es6regular expressionsESframeworkfile systemtslibinternal slotreversedconfigvaluesmatchcommanderkarmajson-schema-validatorlanguagesubprocessrestfulcachesyntaxerrorscheme-validationuuidkeystypedarrayansiECMAScript 2020beanstalkrequirebddsnsrulesstringifyprototypetypanionES2021datejshintURLSearchParamsUnderscoredebugserializebinshamworkflowsafespawndeletedataviewtostringtagjavascriptES6commandequalfetchnpmignoretestingfastcloneregular expressionterminalasteriskshttpsenderterm6to5ECMAScript 7callbindimportexportdynamodbwhichdefine@@toStringTag.gitignoreparentutilsstringifierPushbannerrmdirelectronidentifierspnpm9walkingpreprocessortypeerrorReactiveExtensionseslintpluginmkdirptc39styled-componentsappnamesfast-clonebinaries
3.11.96

12 months ago

3.11.95

12 months ago

3.11.93

1 year ago

3.11.94

12 months ago

3.11.92

1 year ago

3.11.91

1 year ago

3.11.90

1 year ago

3.11.89

1 year ago

3.11.88

1 year ago

3.11.87

1 year ago

3.11.86

1 year ago

3.11.85

1 year ago

3.11.84

1 year ago

3.10.84

1 year ago

3.10.83

1 year ago

3.10.82

1 year ago

3.10.81

1 year ago

3.10.80

1 year ago

3.10.79

1 year ago

3.10.78

1 year ago

2.10.78

1 year ago

2.10.77

1 year ago

2.9.77

1 year ago

2.9.76

1 year ago

2.9.75

1 year ago

2.9.74

1 year ago

2.9.73

1 year ago

2.8.73

1 year ago

2.8.72

1 year ago

2.8.71

1 year ago

2.8.70

1 year ago

2.8.69

1 year ago

2.8.68

1 year ago

2.8.67

1 year ago

2.7.67

1 year ago

2.7.66

1 year ago

2.7.65

1 year ago

2.7.64

1 year ago

2.6.64

1 year ago

2.6.63

1 year ago

2.6.62

1 year ago

2.6.61

1 year ago

2.5.61

1 year ago

2.5.60

1 year ago

2.5.59

1 year ago

2.5.58

1 year ago

2.5.57

1 year ago

2.5.56

1 year ago

2.5.55

1 year ago

2.5.54

1 year ago

2.5.53

1 year ago

2.5.52

1 year ago

2.5.51

1 year ago

2.5.50

1 year ago

2.5.49

1 year ago

2.5.48

1 year ago

2.4.48

1 year ago

2.4.47

1 year ago

2.4.46

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.1.14

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

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