Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Works on 0.17.0
- /**
- * @tupleReturn
- * @luaIterator
- */
- declare function pairs(object: object): Iterable<[string, any]>;
- declare const print: any;
- let o = { a: 0, b: 1, c: 2 };
- for (const [key, value] of pairs(o)) {
- print(key, value);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement