Skip to content

Commit

Permalink
update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Sep 15, 2018
1 parent 0f335c8 commit 9c0b751
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 151 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function isAlradyFound(val) {
return false;
}

function arrayHasDuplicates(arr) {
module.exports = function arrayHasDuplicates(arr) {
if (!Array.isArray(arr)) {
throw new TypeError('Expected an Array to check if it includes duplicated values, but got ' + appendType(arr) + '.');
}
Expand All @@ -30,5 +30,3 @@ function arrayHasDuplicates(arr) {

return arr.some(isAlradyFound, foundValues);
}

module.exports = arrayHasDuplicates;
Loading

0 comments on commit 9c0b751

Please sign in to comment.