Skip to content

element.type ​

Returns whether an element is numeric or a string.

js
element.type(dimension, name)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
namestringThe element's name.

Returns ​

string | null

"N" for a numeric element or "S" for a string element, or null when the dimension or element can't be found.

Examples ​

js
const type = element.type("Account", "Headcount");