function isVideo(data) {
if(data.items[0].type === 'Video') return true
}
This is a just code that checks If It's video through checking a key of object. I guess It could be better using ES7 syntax or something. Do you guys have any ideas?
via Phillip YS
No comments:
Post a Comment