import { array } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { isOutOfBounds } = array;
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>