Closed tracker1 closed 6 years ago
Cool. Thanks for the PR. So what can we convert with this polyfill?
#include "../Array/from.js"
$.writeln(Array.from("foo"));
// => f,o,o
$.writeln(Array.from(app.activeDocument.pages));
// => [object Page]
Will look into making it work with strings and indesign collections.
IT Works with strings. Would be great if it worked with any kind of collection. Not only InDesign
It should work with anything that has a .length
property that's numeric and finite, looking at the code.
Yes it does. Stupid me. In a new ID document there is only one page! m(
And its on the registry https://www.npmjs.com/package/extendscript-es6-shim
Thanks
Add Array.from polyfill