function checkArrayTypeAndLength(x, expectedType, minLength, maxLength) {
	  if (minLength === void 0) {
	    minLength = 0;
	  }

	  if (maxLength === void 0) {
	    maxLength = Infinity;
	  }

	  assert$1(minLength >= 0);
	  assert$1(maxLength >= minLength);
	  return Array.isArray(x) && x.length >= minLength && x.length <= maxLength && x.every(function (e) {
	    return typeof e === expectedType;
	  });
	}
Helper function for verifying the types of inputs.

Ensures that the elements of `x` are all of type `expectedType`.
Also verifies that the length of `x` is within bounds.

@param x Object to test.
@param expectedType The string expected type of all of the elements in the
Array.
@param minLength Return false if x.length is less than this.
@param maxLength Return false if x.length is greater than this.
@returns true if and only if `x` is an `Array<expectedType>` with
length >= `minLength` and <= `maxLength`.