Skip to content

Instantly share code, notes, and snippets.

@MariusBongarts
Created August 4, 2023 06:30
Show Gist options
  • Save MariusBongarts/f88249de43b146b9fa033ce1963ffa42 to your computer and use it in GitHub Desktop.
Save MariusBongarts/f88249de43b146b9fa033ce1963ffa42 to your computer and use it in GitHub Desktop.
declare let array: string[] | number[];
array.filter(x => !!x);
// ~~~~~~ error!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment