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

Method getObjectProperty

src/expression/node/IndexNode.js:162–164  ·  view source on GitHub ↗

* Returns the property name if IndexNode contains a property. * If not, returns null. * @return {string | null}

()

Source from the content-addressed store, hash-verified

160 * @return {string | null}
161 */
162 getObjectProperty () {
163 return this.isObjectProperty() ? this.dimensions[0].value : null
164 }
165
166 /**
167 * Get string representation

Callers 10

_toStringMethod · 0.95
_toHTMLMethod · 0.95
_toTexMethod · 0.95
_compileMethod · 0.80
nameMethod · 0.80
_compileMethod · 0.80
nameMethod · 0.80
_compileMethod · 0.80
accessFactoryFunction · 0.80
assignFactoryFunction · 0.80

Calls 1

isObjectPropertyMethod · 0.95

Tested by

no test coverage detected