This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save to... /Applications/Adobe Illustrator CC/Presets.localized/<LOCALE>/Scripts/ | |
// Polyfill for forEach | |
function forEach(array, fn, scope) { | |
scope = scope || array; | |
// array is cloned in order to allow mutations | |
// in `fn` but not suffer from them, so iteration | |
// keeps normally. | |
array = Array.prototype.slice.call(array,0); | |
for(var i = 0, len = array.length; i < len; i++) { |