Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created February 8, 2020 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsoneaday/d9f593f62624ac8c11aa2f912b548449 to your computer and use it in GitHub Desktop.
Save jsoneaday/d9f593f62624ac8c11aa2f912b548449 to your computer and use it in GitHub Desktop.
let val: unknown = 22;
val = "hello";
val = new Array();
if(val instanceof Array) {
val.push(44);
}
console.log(val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment