Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // Works on 0.17.0
  2.  
  3. /**
  4. * @tupleReturn
  5. * @luaIterator
  6. */
  7. declare function pairs(object: object): Iterable<[string, any]>;
  8.  
  9. declare const print: any;
  10.  
  11. let o = { a: 0, b: 1, c: 2 };
  12.  
  13. for (const [key, value] of pairs(o)) {
  14. print(key, value);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement