ispixel method

Keyword ispixel (Node n)

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

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

Implementation

Keyword ispixel(Node n) => isunit(n, 'px');