Pure functions in JavaScript
Pure functions are a part of functional programming paradigm
Why pure functions?
Clean code
Easy to test and debug
Decoupled and independent from the program so that we could use this as a utility function
Rules:
A pure function should always have...
bksh.hashnode.dev2 min read