Categories
Codes Javascript

What Is Promise Chaining?

Promise chaining is a way to execute codes by calling then() successively after an asynchronous code is executed successfully. Read more to find out.

Categories
Javascript

Method Chaining

This time, I share about method chaining in JavaScript, and how to create an object to support method chaining.

Categories
Codes Javascript

What Is Currying?

In this post, I share about currying, its purpose, and how to use it in real life cases. You mean like cooking curry? Definitely not. Just read the post.

Categories
Humans Self-Awareness

Courage to Happiness

I would like to share some insights from reading The Courage To Be Disliked by Ichiro Kishimi and Fumitake Koga.

Categories
Codes Javascript

7 Tricks of JavaScript Spread (…) Operator

One of the most useful operators introduced in ES6 in the spread (…) operator. It spreads an iterable object to a new list of elements. In this post, I will share about how to implement the spread operator in some use cases.