Module

x/lodash_es/src/array.js>first

lodash for deno use
Latest
function first
import { first } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/array.js";

Gets the first element of array.

Examples

_.head([1, 2, 3]); // => 1

_.head([]); // => undefined

Parameters

array

The array to query.