Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created May 29, 2018 00:46
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 christiannwamba/23ca159454801c663a47f4a0ae8b0af9 to your computer and use it in GitHub Desktop.
Save christiannwamba/23ca159454801c663a47f4a0ae8b0af9 to your computer and use it in GitHub Desktop.
let names: [string, number];
names = ['peter', 23]; // Correct
names = [23, 'John']; // Error
names = [23, 'John', 33, 'Peter' ] // Correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment