This is a video tutorial based on my earlier post in Dev.to. You can find written tutorial in the link below. Enjoy the video and let me know if you have any feedback.
Written tutorial
This is a video tutorial based on my earlier post in Dev.to. You can find written tutorial in the link below. Enjoy the video and let me know if you have any feedback.
Written tutorial
For further actions, you may consider blocking this person and/or reporting abuse
Mica -
Slobi -
Kellen -
Grant -
Once suspended, shadid12 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, shadid12 will be able to comment and publish posts again.
Once unpublished, all posts by shadid12 will become hidden and only accessible to themselves.
If shadid12 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Shadid Haque.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag shadid12:
Unflagging shadid12 will restore default visibility to their posts.
Top comments (4)
i think best way to achieve this making prototype function and then good to go
Array.prototype.forAsyncSerial = async function (fn = null) {
let result = [];
for (let i = 0; i < this.length; i++) {
if (typeof fn !== 'function') result[i] = await this[i];
else result[i] = await fn(this[i], i);
}
return result;
};
Array.prototype.forAsyncParallel = async function (fn = null) {
if (typeof fn !== 'function') return await Promise.all(this);
else return await Promise.all(this.map(fn));
};
Good suggestion. Mind if I use this in the next video :)
Dont forget to mention my name 😉
absolutely 😉👌