2.4.90 • Published 11 months ago

@hishprorg/asperiores-hic v2.4.90

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

@hishprorg/asperiores-hic Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Are these two values conceptually equal?

Example

var isEqual = require('@hishprorg/asperiores-hic');
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('@hishprorg/asperiores-hic/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

columnisConcatSpreadableutil.inspectbinarycommand-lineObject.assignpluginUint8ClampedArraydatereversecheckpositivezoddeterministiceslintconfigObject.valuesprivate dataECMAScript 2017hasreadableReactiveExtensionsguidtostringtagroutingrestfulloggermatchescurlfunction.lengthnumberReactiveXworkspace:*createformattingjsxMicrosoftargscloudtrailfantasy-landreversedsuperagentdataviewJSON-Schemafast-deep-copysameValueZeropruneshimES2019startercopyinstallinternalomitincludesArray.prototype.flatMapobjectemrECMAScript 2015cjkcloudfrontcolorsshellfindLastIndexbannercolumnsregextraversePushmanipulationmkdirchromiumgroupBystringifymake dirlook-upfnmatchStreamflagsfind-upescapefast-deep-clone.gitignoreObject.entriespushjsdomredux-toolkitjasminestreamssidedeep-copyreuseglobal this valuea11ysymbolsstylespuremodulesidentifierstermhooks[[Prototype]]debugcallbindtesterlanguageisObject.isUint8ArrayInt8ArrayeventsquoteargumentcensorgenericscryptomomentRegExp#flagsmatchAllconfigbuffertoStringTaghelpersclassesECMAScript 6whatwg-0babel-coreECMAScript 3querystringacornparsejapanesesuperstructredirectcharacterscollectionreal-timegroupremoveanimationArray.prototype.flattenprivates3stablevestrecursivecorestoragegatewayspinnerchaifinduppropaccessormkdirsWebSocketfullsimpledbgetintrinsictc39regular-expressionrdspropertiespostcss-pluginSystem.globalconcatWeakSetslotamazonjsonshebangqueryECMAScript 5locationArray.prototype.includesmkdirpdeepcopyistanbulbundlerMapreduxfast-clonefindclimulti-packagedirectoryredactswffastclonetestingcallbackimportbdddiroptionwgetinstrumentationfigletloadingpostcssnegative zerocssgesturesdataViewWeakMapSymbolregular expressions$.extendrmsnsArrayBuffer#sliceObjectcloudformationebscallboundes6findLasthasOwnschemeiteratesortedES7RFC-6455inspecttransformdeep-clonebabelchildjoifeedglacierformatregular expressionunicodefull-widthparentassertsFunction.prototype.nametapjsonschemaclassnameUint16ArrayfromidperformantinArray.prototype.flatcall-bindpropertycomputed-typesarraybufferinternal sloteveryESproxyphoneeslint-pluginsymbollogsymlinkspreprocessorelasticacheStyleSheetloadbalancingwalktoReversedendpointrandompathgetoptdescriptionrestES3prefixObservablebyteLengthmrudropES2018monorepostyleguide0requirees7transpilelengthdefineconsumelistenersmetadataflatMapwaitextrafunctionstddtrimLeftramdasettingsxmlWebSocketsworkermoveexpressdeepcloneparentsio-tsnopeArray.prototype.findLastpackagesES2015typescripterrorsqsES8compilerglobalThisvpctrimRightArrayviewECMAScript 2016RxchromeYAMLsettersource mapinstallerfastvalidationrm -frsubprocessbindjQueryfile systemrfc4122timees8trimec2stylingtypeofdatamapreducecomparevarswarningcode pointsECMAScript 2022functionalnegativefastifycolorArray.prototype.containskeyCSSStyleDeclarationindicatorassertionenumerablelasttypejsJSONgdprrmdirformbinariesECMAScript 2021URLes-abstractzxbyteOffsetschemaoffsetprettyjson-schema-validatorkeysnpmignoreclassnamesdependency managermergevariablesmatchsetdom
2.4.90

11 months ago

2.4.89

11 months ago

2.4.88

11 months ago

2.4.87

11 months ago

2.4.86

11 months ago

2.4.85

11 months ago

2.4.84

11 months ago

2.4.83

11 months ago

2.4.82

11 months ago

2.4.81

11 months ago

2.4.80

11 months ago

2.4.79

11 months ago

2.4.78

11 months ago

2.4.77

11 months ago

2.4.76

11 months ago

2.4.75

11 months ago

2.4.74

11 months ago

2.4.73

11 months ago

2.4.72

11 months ago

2.4.71

11 months ago

2.4.70

11 months ago

2.4.69

11 months ago

2.4.68

11 months ago

1.4.68

12 months ago

1.4.67

12 months ago

1.4.66

12 months ago

1.4.65

12 months ago

1.4.64

12 months ago

1.3.64

12 months ago

1.3.63

12 months ago

1.3.62

12 months ago

1.3.61

12 months ago

1.3.60

12 months ago

1.3.59

12 months ago

1.3.58

12 months ago

1.3.57

12 months ago

1.3.56

12 months ago

1.3.55

12 months ago

1.3.54

12 months ago

1.3.53

12 months ago

1.3.52

12 months ago

1.3.51

12 months ago

1.3.50

12 months ago

1.3.49

1 year ago

1.3.48

1 year ago

1.3.47

1 year ago

1.3.46

1 year ago

1.3.45

1 year ago

1.3.44

1 year ago

1.3.43

1 year ago

1.3.42

1 year ago

1.3.41

1 year ago

1.2.41

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

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