mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
15 lines
198 B
TypeScript
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++;
|
|
},
|
|
};
|
|
}
|