- 👋 Hi, I’m Vipin Rana
- 👀 I’m interested in javascript libraries and frameworks
- 💞️ I’m looking to collaborate on javascript projects
- 📫 Reach me at vipinrana06@gmail.com
Block or Report
Block or report vipinrana
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
measuring different execution time i...
measuring different execution time in node js 1const {performance} = require('perf_hooks');
23// using hrtime API
4const hrBefore = process.hrtime();
5 -
Sparse Index in mongodb
Sparse Index in mongodb 1db.collection_name.insert([
2{_id: 1, name: "John Doe", age: 25},
3{_id: 2, name: "Foo Bar", age: 35},
4{_id: 3, name: "Hello World"}
5]);
-
-
-
Promise.race vs Promise.any
Promise.race vs Promise.any 1/*
2* Promise.race will first settled either fulfilled or rejected from the iterable object
3*
4* Promise.any find the first fulfilled without concern of reject promise from the iterable object.
5* If all are rejected promise then it will result an AggregateError.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.