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

Function currentString

src/expression/parse.js:243–245  ·  view source on GitHub ↗

* View upto `length` characters of the expression starting at the current character. * * @param {Object} state * @param {number} [length=1] Number of characters to view * @returns {string} * @private

(state, length)

Source from the content-addressed store, hash-verified

241 * @private
242 */
243 function currentString (state, length) {
244 return state.expression.substr(state.index, length)
245 }
246
247 /**
248 * View the current character. Returns '' if end of expression is reached.

Callers 2

currentCharacterFunction · 0.85
getTokenFunction · 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…