Added devtools detection.
This commit is contained in:
12
assets/js/helpers/in_array.js
Normal file
12
assets/js/helpers/in_array.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function in_array(needle, haystack) {
|
||||
for (var i = 0; i < haystack.length; i ++) {
|
||||
if (needle == haystack[i]) {
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
export default in_array;
|
||||
Reference in New Issue
Block a user