mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-12 23:18:03 -05:00
16 lines
500 B
TypeScript
16 lines
500 B
TypeScript
// test_output! ["🚀","","","","🍹","","","","a","b","c","£","","한","","","🎨","","",""]
|
|
// This is wrong. It should be: ["🚀","🍹","a","b","c","£","한","🎨"].
|
|
// The reason is that for-of is currently approximated using indexing from 0 to .length. This is
|
|
// expected to be fixed when iterators are added to the language.
|
|
|
|
export default function () {
|
|
const str = "🚀🍹abc£한🎨";
|
|
let outputs = [];
|
|
|
|
for (const c of str) {
|
|
outputs.push(c);
|
|
}
|
|
|
|
return outputs;
|
|
}
|