Skip to content

Instantly share code, notes, and snippets.

that's my status, over

Théo champion theochampion

that's my status, over
View GitHub Profile
theochampion / asyncEnrich.js
Created Feb 23, 2018
Enrich data using ES2016 async/await
View asyncEnrich.js
async function get(type) {
const rottentomatoesResponse = await fetch(`${type}`)
const json = await rottentomatoesResponse.json()
const titles = => {
return {
url: element.url,
title: element.title.split(':')[0]
You can’t perform that action at this time.