Skip to content

Instantly share code, notes, and snippets.

View sprakash57's full-sized avatar
👨‍🔧
Working from Home

Sunny Prakash sprakash57

👨‍🔧
Working from Home
View GitHub Profile
@sprakash57
sprakash57 / users.json
Created October 2, 2022 10:34
This gist serves as API endpoint for templates generated through create-react-saga.
[
{
"id": 1,
"name": "Leanne Graham",
"email": "Sincere@april.biz",
"address": {
"street": "Kulas Light",
"city": "Gwenborough"
},
"phone": "1-770-736-8031 x56442"
@sprakash57
sprakash57 / es2020
Last active October 26, 2020 01:13
ES2020 summary
/* 1. BigInt */
conosle.log(typeof 22n); // bigint
console.log(25n > 20); // true
console.log("1" + 10n); // "11"
console.log(34n.toString()); // "34"
console.log(2n == 2) //true
console.log(2n === 2) //false
/* 2. Promise.allSettled() */