logoalt Hacker News

maleldil • yesterday at 10:11 PM • 1 reply • view on HN

It literally says:

> Works with JavaScript arrays


Replies

nvme0n1p1 • yesterday at 10:16 PM

Yes but why? Why should I import a giant dependency to do this:

  a = [1, 2, 3];
  foo = effect.Array.append(a, 4);
instead of using what's built in to the language?

  a = [1, 2, 3];
  foo = [...a, 4];
➕ show 2 replies