pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

More informative error message for certain Array operators

Open b1conrad opened this issue 5 years ago • 0 comments

When one of these operators:

index
reduce
reverse
slice
splice

is applied to something that is not an Array, we see the run-time error message, "TypeError: only works on Arrays"

It would be nice if the error message included the operator name.

b1conrad avatar Mar 18 '21 21:03 b1conrad