Array.from polyfill

Array.from polyfill
...and skip k = 0 here