trbl

0.0.2 • Public • Published

trbl

Expand component arrays to [top, right, bottom, left], in accordance with CSS rules. That is:

[a] => [a, a, a, a]
[a, b] => [a, b, a, b]
[a, b, c] => [a, b, c, b]
[a, b, c, d] => [a, b, c, d]

For convenience, a scalar argument is also supported:

a => [(int)a, (int)a, (int)a, (int)a]

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i trbl

      Weekly Downloads

      7

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • jaz303