2.15.93 • Published 10 months ago

@diotoborg/ratione-velit-quaerat v2.15.93

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

@diotoborg/ratione-velit-quaerat Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Are these two values conceptually equal?

Example

var isEqual = require('@diotoborg/ratione-velit-quaerat');
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('@diotoborg/ratione-velit-quaerat/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

fastclonedropsequencejQuery6to5getOwnPropertyDescriptorRxconstwarningefficientECMAScript 2023performantflagsloggercompareformsafeArray.prototype.containspropertiessettingseslintnegative zeroregularBigUint64ArraytrimEndsymlinkspromisecollectionrecursivesymboli18nSetwafes8routeponyfillhasasyncmatchAllequaloptimizerrgbfilterparsingviewtacitflattenECMAScript 2021es-shimswaapiapistreamsformsguidarktypeArrayhasOwnutilsgraphqlweakmapcomputed-typesbyteeventDispatcherdeepcopyUint8ClampedArraybabelgdprdatastructuredynamodblibphonenumberReactiveXstatelessredactquote-0cloudsearchES2015ESmomentmkdirpcertificatesjson-schemamacosestreebrowserBigInt64ArraymatchesbyteOffsetbuffersargvkeyoptionhas-ownimportexportES5writecurlglacierutilityassertstesterflatplugincjksetgetoptrobustexecuteArray.prototype.filterloggingeventEmitterwritableaccessora11ypinoenderhardlinkstoArraysetterdayjsSymbol.toStringTagobjectspinnerspopmotionECMAScript 2018RFC-6455Array.prototype.findLastStyleSheetreact-hookss3passwordstylesheetpredictabledotenvfunction.lengthdombundlerqueueMicrotaskthreeInt16Arraycachejshintsharedarraybufferfastchildfetcheslint-pluginlengthtraverseworkflowUint16ArraysidehasOwnPropertyECMAScript 2022Function.prototype.nameclientstatel10nfilegradients cssclonefunctionalcryptemitReflect.getPrototypeOfSystem.globalrandomaccessibilityclass-validatorttyArrayBuffertddcensorpicomatchfindJSON-Schemaunicodevariableses-shim APIintrinsicxhrarrayObservablespostcssfull-widthArray.prototype.flatMapES2018beanstalkconcatnativerapidgetec2listenerses-abstractletinterruptses5higher-orderECMAScript 2019schemahelpersignalprefixsubprocessasterisksmkdirsoutputexpressreact-hook-formes2018ArrayBuffer.prototype.sliceuser-streamseveryvalidnpmlinuxdeterministic$.extendincludeskinesiskeysjsxloadinggroupByajvES8TypeBoxFloat64Arraypersistentmovewindownodejsfromvestendpointstyled-componentstrimRighttoStringTagFloat32Arraypositivehandlersdiffserializerfast-copytrimchromiumPromisecontainsfunctionssqsloadbalancingformatdeep-copyObject.keyscss nestingsetImmediateObservableredux-toolkitidentifierstranspileRegExp#flagsHyBieffect-tssomereducerprotocol-buffers
2.15.93

10 months ago

2.15.92

10 months ago

2.14.92

10 months ago

2.14.91

10 months ago

2.14.90

10 months ago

2.14.89

10 months ago

2.14.88

10 months ago

2.13.88

10 months ago

2.13.87

10 months ago

2.13.86

10 months ago

2.13.85

10 months ago

2.13.84

10 months ago

2.13.83

10 months ago

2.13.82

10 months ago

2.13.81

10 months ago

2.13.80

10 months ago

2.13.79

10 months ago

2.13.78

10 months ago

2.12.78

10 months ago

2.12.77

11 months ago

2.12.76

11 months ago

2.11.76

11 months ago

2.11.75

11 months ago

2.11.74

11 months ago

2.11.73

11 months ago

2.11.72

11 months ago

2.11.71

11 months ago

2.11.70

11 months ago

2.11.69

11 months ago

2.10.69

11 months ago

2.10.68

11 months ago

2.10.67

11 months ago

2.10.66

11 months ago

2.9.66

11 months ago

2.8.66

11 months ago

2.8.65

11 months ago

2.8.64

11 months ago

2.8.63

11 months ago

2.8.62

11 months ago

2.8.61

11 months ago

2.8.60

11 months ago

2.8.59

11 months ago

2.8.58

11 months ago

2.8.57

11 months ago

2.8.56

11 months ago

2.8.55

11 months ago

2.8.54

11 months ago

2.8.53

11 months ago

2.8.52

11 months ago

2.7.52

12 months ago

2.7.51

12 months ago

2.7.50

12 months ago

2.7.49

12 months ago

2.7.48

12 months ago

2.7.47

12 months ago

2.7.46

12 months ago

2.7.45

12 months ago

2.6.45

12 months ago

2.6.44

12 months ago

2.6.43

12 months ago

2.6.42

12 months ago

2.6.41

12 months ago

2.6.40

12 months ago

2.6.39

12 months ago

2.6.38

12 months ago

2.6.37

12 months ago

2.6.36

12 months ago

2.6.35

12 months ago

2.6.34

12 months ago

2.6.33

1 year ago

2.6.32

1 year ago

2.6.31

1 year ago

2.6.30

1 year ago

2.6.29

1 year ago

2.6.28

1 year ago

2.6.27

1 year ago

2.6.26

1 year ago

2.6.25

1 year ago

2.5.25

1 year ago

2.5.24

1 year ago

2.5.23

1 year ago

2.5.22

1 year ago

2.5.21

1 year ago

2.5.20

1 year ago

2.4.20

1 year ago

2.4.19

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.3.14

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.11

1 year ago

2.3.10

1 year ago

2.3.9

1 year ago

2.3.8

1 year ago

1.3.8

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

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