Skip to content

More features, more fixes

Compare
Choose a tag to compare
@ETHproductions ETHproductions released this 30 Jan 15:17
· 246 commits to master since this release

One of the defining features of Japt is its lack of arity, so I've been trying to give more functions dual purposes depending on how many arguments they are given. You can see that here with A.c(), N.n(), and D.n().

  • Added feature: K now returns new Date() by default
  • Added feature: implicit U if first char is any of */%^|&<=>?
  • Added shortcuts: Ä (+1) and × (r*1 )
  • Added function: A.ñ(f) sorts A as if each value has been run through f
  • Added function: N.h(n=1) performs N.toPrecision(n)
  • Added function: N.x(n=0) performs N.toFixed(n)
  • Added function: D.n() casts D to a number, D.n(n) does the same as N.n(n)
  • Added function: F.c(f) is like F.a(f), but with all integers: 0, -1, 1, -2, 2, -3, 3...
  • Modified function: A.c(x) concatenates x to A
  • Modified function: N.n(n=0) returns n-N
  • Bug fix: A.n() always sorts lexicographically by default
  • Bug fix: auto-functions don't work with A.æ()
  • Bug fix: auto-functions don't work with N.o()
  • Bug fix: textboxes are emptied if URL contains no code= or input=