Skip to content

Instantly share code, notes, and snippets.

@a-eid a-eid/gen.js
Created Jul 29, 2018

What would you like to do?
const fetch = require("isomorphic-fetch")
const endpoint = ``
function* createGetQuote(){
const resp = yield fetch(endpoint)
const quote = yield resp.json()
return `${quote.quote}--${}`
const getQuote = createGetQuote()
res =>
res =>
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.