Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Update isInArray function
Browse files Browse the repository at this point in the history
  • Loading branch information
11joselu committed Aug 3, 2016
1 parent c42f947 commit b060ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/index.js
Expand Up @@ -18,7 +18,7 @@ var isArray = function isArray(arr) {

var isInArray = function isInArray(arr, item) {

return ~arr.indexOf(item) !== -1;
return ~arr.indexOf(item) !== 0;
}

var removeFromArray = function removeFromArray(arr, item) {
Expand Down Expand Up @@ -87,4 +87,4 @@ module.exports = {
ARRRAY_REGEX: ARRRAY_REGEX,
STRING_REGEX: STRING_REGEX,
PluginError: PluginError
}
}

0 comments on commit b060ce4

Please sign in to comment.