Created
May 8, 2019 06:32
-
-
Save dewey92/ee51c843de8a37e64c863d34a269b4bf to your computer and use it in GitHub Desktop.
Generics Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Array<T> { | |
map: ... | |
filter: ... | |
reduce: ... | |
length: number; | |
... | |
} | |
const names: Array<string> = ['jihad', 'waspada'] | |
const odds: Array<number> = [1, 3, 5, 7] | |
// etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment