Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. let foo: null | string = null;
  2.  
  3. function setFoo(newFoo = 'bar') {
  4. foo = 'baz' + newFoo;
  5. }
  6.  
  7. setFoo();
  8. console.log(foo.match('ba'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement