May 8, 2016 ยท View on GitHub
Use Array.reduce and Array.every to make it easier.
Array.reduce
Array.every