jussi-kalliokoski / trine

A utility library for modern JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is this library dead or alive?

victordidenko opened this issue · comments

Notwithstanding I've found it quite appealing and beautiful, I don't see active development here. As well as new bind syntax proposal is still stage 0 and somewhat controversial.

commented

(Shameless plug)

You might find this library interesting. It uses the pipeline operator (available with Babel) to achieve what Trine does in a cleaner way.

import * as seq from '@njlr/seq';

const xs = [ 1, 5, 1, 2, 7, 3, 3, 4, 5, 0 ] 
  |> seq.unique()
  |> seq.map(x => x * 2)
  |> seq.filter(x => x > 4)
  |> seq.sorted()
  |> seq.toArray;

// xs is [ 6, 8, 10, 14 ]