Skip to main content
Module

x/lodash_es/mod.ts>first

lodash for deno use
Latest
function first
import { first } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Gets the first element of array.

Examples

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

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

Parameters

array

The array to query.