MCPcopy Index your code
hub / github.com/google/earthengine-api / countNodes

Function countNodes

javascript/src/customfunction.js:218–219  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

216 // within the body.
217 const countFunctions = (expression) => {
218 const countNodes = (nodes) =>
219 nodes.map(countNode).reduce((a, b) => a + b, 0);
220 const countNode = (node) => {
221 if (node.functionDefinitionValue) {
222 return 1;

Callers 2

countNodeFunction · 0.85
countFunctionsFunction · 0.85

Calls 2

reduceMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected