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

x/ayonli_jsext/esm/array.js>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/esm/array.js";

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).