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

Method toString

src/expression/node/Node.js:244–252  ·  view source on GitHub ↗

* Get string representation. (wrapper function) * * This function can get an object of the following form: * { * handler: //This can be a callback function of the form * // "function callback(node, options)"or * // a map that maps function nam

(options)

Source from the content-addressed store, hash-verified

242 * @return {string}
243 */
244 toString (options) {
245 const customString = this._getCustomString(options)
246
247 if (typeof customString !== 'undefined') {
248 return customString
249 }
250
251 return this._toString(options)
252 }
253
254 /**
255 * Internal function to generate the string output.

Callers

nothing calls this directly

Calls 2

_getCustomStringMethod · 0.95
_toStringMethod · 0.95

Tested by

no test coverage detected