Skip to content
wolfram77 edited this page Mar 26, 2020 · 21 revisions

Gets first value.

array.head(x);
// x: an array
const array = require('extra-array');

array.head([1, 2, 3]);
// 1

array.head([]);
// undefined

references

Clone this wiki locally