getMatrixDataType
getMatrixDataType(x)
Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".
Try it yourself:
$1 | getMatrixDataType([1, 2, 3])
| |
$2 | getMatrixDataType([[5 cm], [2 inch]])
| |
$3 | getMatrixDataType([1, "text"])
| |
$4 | getMatrixDataType([1, bignumber(4)])
|