Added allEqual + tests

This commit is contained in:
Berkmann18
2018-08-02 22:03:08 +01:00
parent 8c04af3ab5
commit 8bc9dadee5
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;