Within my TypeScript code, I have defined a List as myList: Package[]
. The structure of the Package
model is outlined below -
export class Package {
ID: Number;
Price: Number;
}
I am trying to retrieve a Package
object with the lowest Price
value using the following code snippet:
myList.min(p=>p.Price)
Your guidance on this matter would be greatly appreciated.