import { first } from "https://deno.land/x/ayonli_jsext@v0.9.72/array/index.ts";
Returns the first element of the array, or undefined
if the array is empty.
This function is equivalent to arr[0]
or arr.at(0)
.
Parameters
arr: T[]
import { first } from "https://deno.land/x/ayonli_jsext@v0.9.72/array/index.ts";
Returns the first element of the array, or undefined
if the array is empty.
This function is equivalent to arr[0]
or arr.at(0)
.