MCPcopy Index your code
hub / github.com/josdejong/mathjs / _toString

Method _toString

src/expression/node/ObjectNode.js:131–140  ·  view source on GitHub ↗

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

(options)

Source from the content-addressed store, hash-verified

129 * @override
130 */
131 _toString (options) {
132 const entries = []
133 for (const key in this.properties) {
134 if (hasOwnProperty(this.properties, key)) {
135 entries.push(
136 stringify(key) + ': ' + this.properties[key].toString(options))
137 }
138 }
139 return '{' + entries.join(', ') + '}'
140 }
141
142 /**
143 * Get a JSON representation of the node

Callers

nothing calls this directly

Calls 3

hasOwnPropertyFunction · 0.90
stringifyFunction · 0.90
toStringMethod · 0.65

Tested by

no test coverage detected