UNPKG

quantitivecalc

Version:

A TypeScript library providing advanced quantitative finance functions for risk analysis, performance metrics, and technical indicators. (Currently in development)

13 lines 693 B
/** * Returns a new array where the first item's specified property is set to the given value. * The rest of the items remain unchanged. * * @template T - The type of items in the list. * @template K - The key of the property to update. * @param list - The array of items. * @param columnName - The property name to update on the first item. * @param value - The new value to assign to the specified property. * @returns A new array with the first item's property updated, or an empty array if the input list is empty. */ export default function setFirstItemProperty<T, K extends keyof T>(list: T[], columnName: K, value: T[K]): T[]; //# sourceMappingURL=setFirstItemToValue.d.ts.map