Array.from polyfill

Array.from polyfill
set k to 0 here?