function isFlatArray(arr) {
  return utils$1.isArray(arr) && !arr.some(isVisitable);
}
If the array is an array and none of its elements are visitable, then it's a flat array.

@param {Array<any>} arr - The array to check

@returns {boolean}