What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-02 22:20:17
randome words api
// GetRandom Words from API and push to Array async function getRandomWord() { const res = await fetch('https://random-words-api.vercel.app/word'); const data = await res.json(); return data[Object.keys(data)[0]].word.toLowerCase(); } getRandomW... Add solution -
TypeScript 2022-01-25 22:01:41
Return the Objects Keys and Values
const keysAndValues = (obj) => [Object.keys(obj), Object.values(obj)]; keysAndValues({a: 1, b: 2, c: 3}); //➞ [["a", "b", "c"], [1, 2, 3]] keysAndValues({a: "Dell", b: "Microsoft", c: "Google&qu... Add solution
Best helpers
Ranking is empty