tahamajs's picture
download
raw
436 Bytes
define(['./initial'], function (initial) {
// Get the first element of an array. Passing **n** will return the first N
// values in the array. The **guard** check allows it to work with `_.map`.
function first(array, n, guard) {
if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
if (n == null || guard) return array[0];
return initial(array, array.length - n);
}
return first;
});

Xet Storage Details

Size:
436 Bytes
·
Xet hash:
3b2ba0d92d514fb325cda4dcde4a304d0e7495fe908c1a4c7e71ab68e635bfa0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.