Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let foo: null | string = null;
- function setFoo(newFoo = 'bar') {
- foo = 'baz' + newFoo;
- }
- setFoo();
- console.log(foo.match('ba'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement