Last active
May 16, 2020 19:27
-
-
Save haldarmahesh/44f84b165a332c4dbde8d9486341d9bf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Person { | |
name: String | |
} | |
const convertStringToArray = (value: String): Array<String> => { | |
return [value]; | |
} | |
const convertNumberToArray = (value: Number): Array<Number> => { | |
return [value]; | |
} | |
const convertPersonToArray = (value: Person): Array<Person> => { | |
return [value]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment