contains.js 199 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 var indexOf = require('./indexOf'); /** * If array contains values. */ function contains(arr, val) { return indexOf(arr, val) !== -1; } module.exports = contains;