What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-19 13:04:06
asyncstorage.getallkeys
importData = async () => { try { const keys = await AsyncStorage.getAllKeys(); const result = await AsyncStorage.multiGet(keys); return result.map(req => JSON.parse(req)).forEach(console.log); } catch (error) { console.error(err... Add solution -
Javascript 2021-09-18 07:21:02
combination with repetition algorithm js
(() => { 'use strict'; // COMBINATIONS WITH REPETITIONS ------------------------------------------- // combsWithRep :: Int -> [a] -> [[a]] const combsWithRep = (k, xs) => { const comb = (n, ys) => { ... Add solution