import { isOutOfBounds } from "https://deno.land/x/fun@v2.0.0-alpha.6/array.ts";
Given an index and a ReadonlyArray, return true if the index is valid for the given array. This tests whether index is between 0 and arr.length inclusive.
Parameters
ua: ReadonlyArray<A>