Files
ValueScript/inputs/passing/counter.ts
2022-05-21 14:14:10 +10:00

15 lines
198 B
TypeScript

export default function() {
let c = Counter();
return [c.get(), c.get(), c.get()];
}
function Counter() {
return {
next: 1,
get: function() {
return this.next++;
},
};
}