Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/videos.js
Last active Nov 8, 2018

Embed
What would you like to do?
Youtube reduceWatchDetails with VIDEO_LIST_RESPONSE type
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
You can’t perform that action at this time.