arraync icon indicating copy to clipboard operation
arraync copied to clipboard

import 'arraync' adds async function names to array properties

Open doxic012 opened this issue 6 years ago • 0 comments

When I import the code using import 'arraync' in typescript, it permanently adds all async array function names to any array props resulting in the following when I try to iterate an array using a for...in-loop in js:

var a = [1,2,3]; for(var item in a) console.log(item);

results in: image


This causes a lot of problems for me, because accessing elements using the index is always broken. Is there a quick fix for this without searching the whole transpiled code? ;)

doxic012 avatar Apr 09 '19 09:04 doxic012