7 lines
144 B
JavaScript
7 lines
144 B
JavaScript
|
var includes = function includes(arr, val) {
|
||
|
return arr.some(function (arrVal) {
|
||
|
return val === arrVal;
|
||
|
});
|
||
|
};
|
||
|
|
||
|
export default includes;
|