use Array.from on single block array comprehensions - closes #199
This commit is contained in:
5
test/fixtures/transformation/array-comprehension/single/expected.js
vendored
Normal file
5
test/fixtures/transformation/array-comprehension/single/expected.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var arr = Array.from(nums).map(function (i) {
|
||||
return i * i;
|
||||
});
|
||||
Reference in New Issue
Block a user