2.7.101 • Published 10 months ago

@erboladaiorg/libero-a v2.7.101

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

@erboladaiorg/libero-a Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Are these two values conceptually equal?

Example

var isEqual = require('@erboladaiorg/libero-a');
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('@erboladaiorg/libero-a/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

modulesaccessibilityJSON-SchemaelbUnderscoreautoscalingCSSStyleDeclarationcopyformdeep-clonecolourjsonschemaelasticacheequalUint8Arraydotenvemitomitsyntaxerrorsnslocationgetconcatschemeinstallqsfeedkeykeyswidthdeeptostringtagshellcloudformationtimeassertsec2framer256weblengthrfc4122ESebsrm -frtypesnegative zerofiletypeerrorstreamguidkinesisES2015jsdomcallbindpathhastypecircularpushObject.keyshasOwnes2018tddnodejschinesetrimrecursivepnpm9trimRightcloudwatchsubprocessmakewhatwgemrrm -rfURLzeroparseignoretrimStartmomentbindRFC-6455assignsimpledbeventEmitteres6queuelogcomparedebugECMAScript 2020chromewritedynamodbcall-bindSystem.globalpropertiesmapreducejasminerestmanipulationcoerciblefunctionsuninstallescapeJSONnpmignorewarningdom-testing-libraryvalidatexmlSetoncebusyURLSearchParamsAsyncIteratorrapidexecutemake dirmoduleArrayBuffer#sliceextendcharactermonorepocodesUint16Arraycallbackcharacterses7__proto__banneroffsetObject.fromEntriescallbounddeep-copyglobaljQueryObject.isFloat64Arraysharedarraybuffertslibdomroutingcurriedcompilerhooksnodeutil.inspectvalidatorcontainsspringformatpositiveemojiflagString.prototype.matchAllresolveArray.prototype.filterpyyamlbrowserxhr0objectcollectionfpscore-jscloudfrontshrinkwrapiamvalidcommand-linehasOwnProperty6to5ES8errorstylespipegroupparentidentifiersdataviewinferencejson-schema-validatorimportlooklibphonenumbersyntaxsuperstructaccessorTypeBoxdescriptionECMAScript 2021ajvsharedTypedArrayredux-toolkitrmhigher-orderquotemobiledateflatMapreuseownclass-validatorWeakSetstringifierECMAScriptdebuggerreadableprotooptimizerglobalsfphelperRegExp#flagsjshintES6htmlchaicensorlinkasterisksObjectutilitiesstyleECMAScript 7bddmkdirdescriptorgettersettings.envES2020zodObject.entrieswgetboundES2019loggingargslruextrabyteOffsetenderassertshimwalkingdataletwritablechromiumdependenciesdeletetypeofs3ES2017progresstestcjkYAMLdirectorybytehttpInt32ArrayfindLastIndex3dECMAScript 2015gitignoreswfdiffjsonwaapifsespreeprotocol-buffersrdsroute53styleguideUint32ArrayhelpersECMAScript 6es8filterloggerestreeforkminimalfolderRxJSObservablepostcssfindreal-timeES2016xtermanimationvisualECMAScript 2023regularfastcopyeast-asian-widthMicrosoftunicodecolumncolorsspecgetOwnPropertyDescriptorgdprdeepcopyzxarraysshebangmatchtranspilerfixed-widthReactiveXsesreact-hook-formrangeerrortakeasyncMapmrutraversereadgetPrototypeOfselfmanagersorttoolkitindicatorRxlanguageecmascriptbeanstalkatomtoArrayES3utilmetadatalook-upregexhttpsacorncheckbufferincludeseslint-plugintypedarrayspatchglobconfigurablecomputed-typesES2021shamIteratorlastsetrmdirArrayBuffer.prototype.slicecolorES2018testingvaluereact animationtapeReflect.getPrototypeOfpackage manager@@toStringTagcssfast-copy$.extendlistenerssymlinksbrowserslistinvariantgraphqlyupfunctionaltelephone[[Prototype]]fullpackage.jsoncommanderprototypefile systemiteratetoReversedpruneObject.definePropertyArray.prototype.findLastIndexl10njoifromarktypefindupString.prototype.triminstrumentationrssrouterasciireduceres-shim APIsinatraoutputmkdirpclientrequesttypescriptreversefindLastramdaloadbalancingisConcatSpreadablejavascriptes2017objbabel-coreassertionWeakMapenvpinobrowserlistmatchAlli18nschemaairbnbeffect-tsidlechannelfastgetoptsetImmediaterandomstringphoneloadingArray.prototype.flatMapqueueMicrotaskSymbol.toStringTagrgbtrimEndESnextreact-testing-libraryjestvpcregular expressionserializeeslintconfigtransportmatchesenvironmentSymbolpurefantasy-landclasseshookformidnumberdeepcloneECMAScript 5function.lengthprettyregexpio-tspostcss-pluginbabelserializerajaxlocalttyjsdiffbinariescall-boundFunction.prototype.nameHyBispinnerseventsnegativefast-deep-copycode pointsnpmes5styled-componentsformscss-in-jstexthashconstlockfilereadablestreambundlertransformes-shimsflatdropserializationprotobuf.gitignoredependency managerimmutabletappackagesargvinputdataViewperformantconcatMappoint-freewafjson-schema-validationes2015ECMAScript 2018forEachimmeravaclassnamesjsArray.prototype.flattenfastcloneflagsReactiveExtensionsdefinemkdirssetterutilityECMAScript 2019weaksetuuidnopeUint8ClampedArrayvariablesECMAScript 2017react poseinspectautoprefixerroutecalldragreversedperformanceflatteninternalentriesawesomesauceECMAScript 2016optimistTypeScriptcloudsearchtyped arraywhichprefixInt8Arraysource mapisjson-schemapicomatchremoveArraymoveescachescheme-validationObject.valuescorecollection.es6argumentslotconsumereact-0typedsetPrototypeOfWebSocketsStreamsstreamspolyfillclassnameruntimeplugincolumnsvarviewframeworkhas-ownintrinsicvesthardlinkseveryparentsworkspace:*Object.assigninsearchES2022querystringES7eventDispatcherfastifyStreamglacieramazonWebSocketbyteLengthpropgetintrinsicnativesortedexpressupinstallersafefigletprivatenamestoragegatewaytypesafefetchprocesssymbolsslicesymboldeterministicstructuredClonetc39toolsBigUint64ArrayagentproxyarraybufferFloat32ArraytypanionCSSbuffersBigInt64ArrayconsolespinnerspawnterminalArray.prototype.flatglobalThisawsreduxartfullwidthiteratorappweakmapponyfillstablenamesbundlingcurlArray.prototype.containspopmotionmulti-package
2.7.101

10 months ago

2.7.100

10 months ago

2.7.99

10 months ago

2.7.98

10 months ago

2.6.98

10 months ago

2.6.97

10 months ago

2.6.96

10 months ago

2.6.95

11 months ago

2.6.94

11 months ago

2.6.93

11 months ago

2.6.92

11 months ago

2.6.91

11 months ago

2.6.90

11 months ago

2.6.89

11 months ago

2.6.88

11 months ago

2.6.87

11 months ago

1.6.87

11 months ago

1.6.86

11 months ago

1.6.85

11 months ago

1.6.84

11 months ago

1.6.83

11 months ago

1.6.82

11 months ago

1.6.81

11 months ago

1.6.80

11 months ago

1.6.79

11 months ago

1.6.78

11 months ago

1.6.77

11 months ago

1.6.76

11 months ago

1.6.75

11 months ago

1.6.74

11 months ago

1.6.73

11 months ago

1.6.72

11 months ago

1.6.71

11 months ago

1.6.70

11 months ago

1.5.70

11 months ago

1.5.69

11 months ago

1.5.68

11 months ago

1.5.67

12 months ago

1.5.66

12 months ago

1.5.65

12 months ago

1.5.64

12 months ago

1.5.63

12 months ago

1.5.62

12 months ago

1.5.61

12 months ago

1.5.60

12 months ago

1.4.60

12 months ago

1.4.59

12 months ago

1.3.59

12 months ago

1.3.58

12 months ago

1.3.57

12 months ago

1.2.57

12 months ago

1.2.56

12 months ago

1.2.55

12 months ago

1.2.54

12 months ago

1.2.53

12 months ago

1.2.52

12 months ago

1.2.51

12 months ago

1.2.50

1 year ago

1.2.49

1 year ago

1.2.48

1 year ago

1.2.47

1 year ago

1.2.46

1 year ago

1.2.45

1 year ago

1.2.44

1 year ago

1.2.43

1 year ago

1.2.42

1 year ago

1.2.41

1 year ago

1.2.40

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

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

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

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