MCPcopy
hub / github.com/aosabook/500lines / blockValue

Function blockValue

blockcode/code/blocks.js:24–27  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

22 }
23
24 function blockValue(block){
25 var input = block.querySelector('input');
26 return input ? Number(input.value) : null;
27 }
28
29 function blockUnits(block){
30 if (block.children.length > 1 && block.lastChild.nodeType === Node.TEXT_NODE && block.lastChild.textContent){

Callers 1

blockScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected