/**
* @returns first element of an array.
* @throws if array length is 0.
*/constfirst = (values) => {
if (!values.length) {
thrownewTypeError('Expected non empty array to get first element.');
}
return values[0];
};
exportdefault first;
//# sourceMappingURL=first.js.map