Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {resolve} from 'creed'
- const shortTerm = (url) =>
- resolve(url)
- .then(result => window.sessionStorage.setItem(url, JSON.stringify(result)))
- .catch(err => console.error(err, 'from shortTerm'))
- shortTerm(123).then(.bin.log.bind(console))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement