isurl method

Keyword isurl (
  1. Node n
)

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

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

Implementation

Keyword isurl(Node n) => (n is URL) ? Keyword.True() : Keyword.False();