isnumber method

Keyword isnumber (Node n)

Returns true if a value is a number, false otherwise.

Parameters: value - a value or variable being evaluated. Returns: true if value is a number, false otherwise. Example: isnumber(#ff0); // false isnumber(1234); // true

Implementation

Keyword isnumber(Node n) =>
    (n is Dimension) ? Keyword.True() : Keyword.False();