Skip to content

Commit

Permalink
Fixed stuff using eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
idrisakmal committed Jun 27, 2018
1 parent 9457642 commit ac04756
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/util/includes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export default (array, ele) => {
return array.some(element => {
element === ele
})
}
const includes = (arr, val) => arr.some(arrVal => val === arrVal);

export default includes;

0 comments on commit ac04756

Please sign in to comment.