2.4.90 • Published 1 year ago

@hishprorg/asperiores-hic v2.4.90

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

1 year ago

2.4.89

1 year ago

2.4.88

1 year ago

2.4.87

1 year ago

2.4.86

1 year ago

2.4.85

1 year ago

2.4.84

1 year ago

2.4.83

1 year ago

2.4.82

1 year ago

2.4.81

1 year ago

2.4.80

1 year ago

2.4.79

1 year ago

2.4.78

1 year ago

2.4.77

1 year ago

2.4.76

1 year ago

2.4.75

1 year ago

2.4.74

1 year ago

2.4.73

1 year ago

2.4.72

1 year ago

2.4.71

1 year ago

2.4.70

1 year ago

2.4.69

1 year ago

2.4.68

1 year ago

1.4.68

1 year ago

1.4.67

1 year ago

1.4.66

1 year ago

1.4.65

1 year ago

1.4.64

1 year ago

1.3.64

1 year ago

1.3.63

1 year ago

1.3.62

1 year ago

1.3.61

1 year ago

1.3.60

1 year ago

1.3.59

1 year ago

1.3.58

1 year ago

1.3.57

1 year ago

1.3.56

1 year ago

1.3.55

1 year ago

1.3.54

1 year ago

1.3.53

1 year ago

1.3.52

1 year ago

1.3.51

1 year ago

1.3.50

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