0.0.6 • Published 7 years ago

@eslib/std v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Build Status npm mit

The compact, well typed standard library for ESlib

Installation

npm install @eslib/std --save

Example

import '@eslib/std'

[1, 2, 3, 4]
  .drop(1)                // [2, 3, 4]
  .zip(5, 6, 7)           // [[2, 5], [3, 6], [4, 7]]
  .fromPairs()            // { 2: 5, 3: 6, 4: 7 }
  .mapValues(_ => _ * 2)  // { 2: 10, 3: 12, 4: 14 }
  .omit('2', '3')         // { 4: 14 }
  .invert()               // { 14: 4 }

Building It

npm run build

Tests

npm test

License

MIT

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago