@eslib/std
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @eslib/std

Weekly Downloads

2

Version

0.0.6

License

MIT

Last publish

Collaborators

  • bcherny