What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-17 23:50:04
gatsby creating pages from contentful
const path = require('path') exports.createPages = ({graphql, boundActionCreators}) => { const {createPage} = boundActionCreators return new Promise((resolve, reject) => { const storeTemplate = path.resolve('src/templates/store.js') res... Add solution -
Javascript 2021-09-06 19:38:04
promise.allsettled polyfill node
Promise.myAll = function (promises) { var count = promises.length var result = new Array(count).fill(false) return new Promise((resolve, reject) => { var checkIfDone = () => { if (--count === 0) resolve(result) } promises.f... Add solution