Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/array/index.ts>first

A JavaScript extension package for building strong and modern applications.
Latest
function first
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).

Returns

T | undefined