function contains(arr, obj) {
  return indexOf(arr, obj) >= 0;
}
Whether the array contains the given object.
@param {IArrayLike<?>|string} arr The array to test for the presence of the
    element.
@param {*} obj The object for which to test.
@return {boolean} true if obj is present.