MCPcopy Index your code
hub / github.com/plotly/plotly.js / valsMatch

Function valsMatch

src/plot_api/plot_api.js:2411–2421  ·  view source on GitHub ↗
(v1, v2)

Source from the content-addressed store, hash-verified

2409}
2410
2411function valsMatch(v1, v2) {
2412 var v1IsObj = Lib.isPlainObject(v1);
2413 var v1IsArray = Array.isArray(v1);
2414 if (v1IsObj || v1IsArray) {
2415 return (
2416 ((v1IsObj && Lib.isPlainObject(v2)) || (v1IsArray && Array.isArray(v2))) &&
2417 JSON.stringify(v1) === JSON.stringify(v2)
2418 );
2419 }
2420 return v1 === v2;
2421}
2422
2423function applyUIRevisions(data, layout, oldFullData, oldFullLayout) {
2424 var layoutPreGUI = oldFullLayout._preGUI;

Callers 1

applyUIRevisionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…