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

Function getParents

test/jasmine/assets/custom_assertions.js:373–377  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

371};
372
373function getParents(node) {
374 var parent = node.parentNode;
375 if(parent) return getParents(parent).concat(node);
376 return [node];
377}
378
379function collectionToArray(collection) {
380 var len = collection.length;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…