Actualités

In functional programming, this is a big no-no. Mutations are considered a nasty side-effect that should be avoided. The issues that arise from mutation typically have to do with assumptions about ...
This is an issue that can be fixed by writing two utility functions — getFirst and getSecond — that encapsulate the true / false logic: const getFirst = (pair) => { return pair (true); }; ...