@extra-array/head
v2.10.19
Published
Gets first value.
Downloads
803
Readme
Gets first value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
array.head(x, [vd]);
// x: an array
// vd: default value
const array = require("extra-array");
array.head([1, 2, 3]);
// 1
array.head([], -1);
// -1