type VideoProvider = 'youtube' | 'vimeo'
/**
* Accepts url from IVideoData as an arg and returns a tuple of the VideoProvider and the Id
*/
function getVideoProviderAndId(videoEmbedUrl: string): [VideoProvider, string] {
// your code here
return [videoProvider, videoId]
}
Can we get a function that looks like this?