apostrophecms / apostrophe-open-museum

Learn about ApostropheCMS via this boilerplate site built for an imaginary art museum.
http://apostrophecmsdemo.org
MIT License
37 stars 17 forks source link

Use or arrow function for helpers #29

Closed austinstarin closed 6 years ago

austinstarin commented 6 years ago

https://github.com/apostrophecms/apostrophe-demo-2018/blob/1688c20e3bad2047861d3386cef815e302b9de3a/lib/modules/helpers/index.js#L29

You can write these helpers, for example, using an arrow function and remove the return keyword.

_find: (haystack, needle) => _.find(haystack, needle)