contains.js 199 B

12345678910
  1. var indexOf = require('./indexOf');
  2. /**
  3. * If array contains values.
  4. */
  5. function contains(arr, val) {
  6. return indexOf(arr, val) !== -1;
  7. }
  8. module.exports = contains;