Skip to content

Instantly share code, notes, and snippets.

@robertcoopercode
Created January 8, 2019 23:51
Show Gist options
  • Save robertcoopercode/91827ed415b254e89e828e89cbf6a77e to your computer and use it in GitHub Desktop.
Save robertcoopercode/91827ed415b254e89e828e89cbf6a77e to your computer and use it in GitHub Desktop.
let myFavoriteTuple: [string, number, boolean];
myFavoriteTuple = ['chair', 20, true]; // ✅
myFavoriteTuple = [5, 20, true]; // ❌ - The first element should be a string, not a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment