2.15.93 • Published 12 months ago

@diotoborg/ratione-velit-quaerat v2.15.93

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

12 months ago

2.15.92

12 months ago

2.14.92

12 months ago

2.14.91

1 year ago

2.14.90

1 year ago

2.14.89

1 year ago

2.14.88

1 year ago

2.13.88

1 year ago

2.13.87

1 year ago

2.13.86

1 year ago

2.13.85

1 year ago

2.13.84

1 year ago

2.13.83

1 year ago

2.13.82

1 year ago

2.13.81

1 year ago

2.13.80

1 year ago

2.13.79

1 year ago

2.13.78

1 year ago

2.12.78

1 year ago

2.12.77

1 year ago

2.12.76

1 year ago

2.11.76

1 year ago

2.11.75

1 year ago

2.11.74

1 year ago

2.11.73

1 year ago

2.11.72

1 year ago

2.11.71

1 year ago

2.11.70

1 year ago

2.11.69

1 year ago

2.10.69

1 year ago

2.10.68

1 year ago

2.10.67

1 year ago

2.10.66

1 year ago

2.9.66

1 year ago

2.8.66

1 year ago

2.8.65

1 year ago

2.8.64

1 year ago

2.8.63

1 year ago

2.8.62

1 year ago

2.8.61

1 year ago

2.8.60

1 year ago

2.8.59

1 year ago

2.8.58

1 year ago

2.8.57

1 year ago

2.8.56

1 year ago

2.8.55

1 year ago

2.8.54

1 year ago

2.8.53

1 year ago

2.8.52

1 year ago

2.7.52

1 year ago

2.7.51

1 year ago

2.7.50

1 year ago

2.7.49

1 year ago

2.7.48

1 year ago

2.7.47

1 year ago

2.7.46

1 year ago

2.7.45

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.6.41

1 year ago

2.6.40

1 year ago

2.6.39

1 year ago

2.6.38

1 year ago

2.6.37

1 year ago

2.6.36

1 year ago

2.6.35

1 year ago

2.6.34

1 year 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