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]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    0

Package Sidebar

Install

npm i trbl

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jaz303