Skip to content

Instantly share code, notes, and snippets.

@jsoneaday

jsoneaday/union Secret

Created February 8, 2020 20:31
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/ba05338b2c47f3b88dffa10ebf077fc1 to your computer and use it in GitHub Desktop.
Save jsoneaday/ba05338b2c47f3b88dffa10ebf077fc1 to your computer and use it in GitHub Desktop.
let acceptApiResult: undefined | null | Array<string>;
acceptApiResult = undefined;
console.log(acceptApiResult);
acceptApiResult = null;
console.log(acceptApiResult);
acceptApiResult = new Array<string>();
acceptApiResult.push("A");
acceptApiResult.push("B");
console.log(acceptApiResult);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment