See #30. when/keys module with all, map, and reduce
Add docs and JSDoc