MCPcopy
hub / github.com/josdejong/mathjs / needsEnd

Method needsEnd

src/expression/node/RangeNode.js:71–78  ·  view source on GitHub ↗

* Check whether the RangeNode needs the `end` symbol to be defined. * This end is the size of the Matrix in current dimension. * @return {boolean}

()

Source from the content-addressed store, hash-verified

69 * @return {boolean}
70 */
71 needsEnd () {
72 // find all `end` symbols in this RangeNode
73 const endSymbols = this.filter(function (node) {
74 return isSymbolNode(node) && (node.name === 'end')
75 })
76
77 return endSymbols.length > 0
78 }
79
80 /**
81 * Compile a node into a JavaScript function.

Callers

nothing calls this directly

Calls 2

isSymbolNodeFunction · 0.90
filterMethod · 0.65

Tested by

no test coverage detected