What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 20:42:02
get token from post axios react
const refreshToken = () => { let currUser = JSON.parse(localStorage.getItem("my_app_user")); let getUserFormData = new FormData(); getUserFormData.append("grant_type", "refresh_token"); getUserFormData.append("ref... Add solution -
TypeScript 2021-09-25 07:52:03
cloudinary
import { v2 as cloudinary, UploadApiResponse } from 'cloudinary' export const cloudStorage = (filename: string): Promise<Record<string, any>> => { return new Promise((resolve, reject) => { cloudinary.config({ cloud_name: process.e... Add solution -
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