Array.checktype()

From ZCubes Wiki
Jump to navigation Jump to search


Array.checktype(TypeArray, ForceCheckOnVariables)

Check if all elements of this array is of a set of Types.

[1,2,3,"TEST"].checktype("number")

false

[1,2,3].checktype("number")

true

See also Array.numbers()