MCPcopy Index your code
hub / github.com/json-editor/json-editor / equal

Function equal

docs/scripts/ajv-validator.js:8306–8318  ·  view source on GitHub ↗
(uriA, uriB, options)

Source from the content-addressed store, hash-verified

8304 }
8305
8306 function equal(uriA, uriB, options) {
8307 if (typeof uriA === "string") {
8308 uriA = serialize(parse(uriA, options), options);
8309 } else if (typeOf(uriA) === "object") {
8310 uriA = serialize(uriA, options);
8311 }
8312 if (typeof uriB === "string") {
8313 uriB = serialize(parse(uriB, options), options);
8314 } else if (typeOf(uriB) === "object") {
8315 uriB = serialize(uriB, options);
8316 }
8317 return uriA === uriB;
8318 }
8319
8320 function escapeComponent(str, options) {
8321 return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);

Callers 2

checkAmbiguosRefFunction · 0.85
ajv-validator.jsFile · 0.85

Calls 3

serializeFunction · 0.85
parseFunction · 0.85
typeOfFunction · 0.85

Tested by

no test coverage detected