ES6 Functions: Pure & self documented

2977 days ago, 0 views.

A pure function is one that exhibits the property of substitution: replacing a call with its returned value should make the program equivalent. As an example, concat('hello', 'world') can be substituted with 'hello world' without changing the behavior of your program. Pure UI by Guillermo Rauch

Inspired in Making your JavaScript Pure article.

Kiko Beats

Kiko Beats