What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-19 05:08:23
is promise
// Promise is a special type of object that helps you work with asynchronous operations. // Many functions will return a promise to you in situations where the value cannot be retrieved immediately. const userCount = getUserCount(); console.log(userCount... Add solution -
Other 2021-11-05 09:04:22
simple jest test cases for array of objects
import pizzas from '../data'; // very basic test to notify the user if our pizza data has changed test('the pizza data is correct', () => { expect(pizzas).toMatchSnapshot(); expect(pizzas).toHaveLength(4); expect(pizzas.map(pizza => pizza.nam... Add solution
Best helpers
Ranking is empty