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