Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@eslib/std

eslib9MIT0.0.6TypeScript support: included

The compact, well typed standard library for ESlib

readme

ESlib-Std

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