quantitivecalc
Version:
A TypeScript library providing advanced quantitative finance functions for risk analysis, performance metrics, and technical indicators. (Currently in development)
13 lines (12 loc) • 410 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getFirstRow;
/**
* Returns the first element of the provided list, or `undefined` if the list is empty.
*
* @param list - The array of elements to retrieve the first item from.
* @returns The first element of the list, or `undefined` if the list is empty.
*/
function getFirstRow(list) {
return list[0];
}