Added allEqual + tests

This commit is contained in:
Berkmann18
2018-08-02 22:03:08 +01:00
parent c78d37ef91
commit 2a6c992f73
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,2 @@
const allEqual = arr => arr.every(val => val === arr[0]);
module.exports = allEqual;