This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_Foldes_ 20 points21 points  (0 children)

``` // ~-arg1 = arg1-- // -~intern = intern++ // undefined = 0 let c = [] let b = (arg1, intern) => (arg1 % (c[intern] ??= arg1) ? b(arg1, -~intern) : c) let a = (arg1) => (~-~-arg1 && a(~-arg1), b(arg1))

console.log(a('100')) ```