MCPcopy Index your code
hub / github.com/devforth/painterro / firstDefined

Function firstDefined

js/params.js:30–37  ·  view source on GitHub ↗
(...vals)

Source from the content-addressed store, hash-verified

28}
29
30function firstDefined(...vals) {
31 for (let i = 0; i < vals.length; i += 1) {
32 if (vals[i] !== undefined) {
33 return vals[i];
34 }
35 }
36 return undefined;
37}
38
39
40

Callers 1

setDefaultsFunction · 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…