ispercentage method
- Node n
Returns true if a value is a percentage value, false otherwise.
Parameters: value - a value or variable being evaluated. Returns: true if value is a percentage value, false otherwise. Example: ispercentage(#ff0); // false ispercentage(7.8%); // true
Implementation
Keyword ispercentage(Node n) => isunit(n, '%');