2.7.101 • Published 1 year ago

@erboladaiorg/libero-a v2.7.101

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

1 year ago

2.7.100

1 year ago

2.7.99

1 year ago

2.7.98

1 year ago

2.6.98

1 year ago

2.6.97

1 year ago

2.6.96

1 year ago

2.6.95

1 year ago

2.6.94

1 year ago

2.6.93

1 year ago

2.6.92

1 year ago

2.6.91

1 year ago

2.6.90

1 year ago

2.6.89

1 year ago

2.6.88

1 year ago

2.6.87

1 year ago

1.6.87

1 year ago

1.6.86

1 year ago

1.6.85

1 year ago

1.6.84

1 year ago

1.6.83

1 year ago

1.6.82

1 year ago

1.6.81

1 year ago

1.6.80

1 year ago

1.6.79

1 year ago

1.6.78

1 year ago

1.6.77

1 year ago

1.6.76

1 year ago

1.6.75

1 year ago

1.6.74

1 year ago

1.6.73

1 year ago

1.6.72

1 year ago

1.6.71

1 year ago

1.6.70

1 year ago

1.5.70

1 year ago

1.5.69

1 year ago

1.5.68

1 year ago

1.5.67

1 year ago

1.5.66

1 year ago

1.5.65

1 year ago

1.5.64

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.61

1 year ago

1.5.60

1 year ago

1.4.60

1 year ago

1.4.59

1 year ago

1.3.59

1 year ago

1.3.58

1 year ago

1.3.57

1 year ago

1.2.57

1 year ago

1.2.56

1 year ago

1.2.55

1 year ago

1.2.54

1 year ago

1.2.53

1 year ago

1.2.52

1 year ago

1.2.51

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