MCPcopy Index your code
hub / github.com/plotly/dash / getLocationIndex

Function getLocationIndex

dash/dash-renderer/src/actions/patch.ts:29–34  ·  view source on GitHub ↗
(value: LocationIndex, previous: any)

Source from the content-addressed store, hash-verified

27}
28
29function getLocationIndex(value: LocationIndex, previous: any) {
30 if (is(Number, value) && value < 0) {
31 return previous.length + value;
32 }
33 return value;
34}
35
36function getLocationPath(location: LocationIndex[], obj: any) {
37 const current = [];

Callers 2

getLocationPathFunction · 0.85
patch.tsFile · 0.85

Calls 1

isFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…