I want to do something like:
var from = [2,3] var to = Array(from.length).fill(1) image.remap(from,to,0)
Of course, I could just assign
to, but from is an input of a function and it is not guaranteed to have a length of 2.
The problem is that I get an error that says
Array(...).fill is not a function