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

Method _toString

src/expression/node/IndexNode.js:171–176  ·  view source on GitHub ↗

* Get string representation * @param {Object} options * @return {string} str

(options)

Source from the content-addressed store, hash-verified

169 * @return {string} str
170 */
171 _toString (options) {
172 // format the parameters like "[1, 0:5]"
173 return this.dotNotation
174 ? ('.' + this.getObjectProperty())
175 : ('[' + this.dimensions.join(', ') + ']')
176 }
177
178 /**
179 * Get a JSON representation of the node

Callers

nothing calls this directly

Calls 1

getObjectPropertyMethod · 0.95

Tested by

no test coverage detected