Skip to content

Instantly share code, notes, and snippets.

@jsoneaday

jsoneaday/union Secret

Created Feb 8, 2020
Embed
What would you like to do?
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