Last active
November 8, 2018 21:18
-
-
Save productioncoder/88b694c39bfc941e8e2f807017de65b3 to your computer and use it in GitHub Desktop.
Youtube reduceWatchDetails with VIDEO_LIST_RESPONSE type
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
import {VIDEO_LIST_RESPONSE} from '../api/youtube-api-response-types'; | |
/*...*/ | |
function reduceWatchDetails(responses, prevState) { | |
const videoDetailResponse = responses.find(r => r.result.kind === VIDEO_LIST_RESPONSE); | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment