mergeSales
mergeSales(
read,kept,now,options?):Sale[]
The sales read this look, merged with those kept from earlier looks: newest first, the
last days days, at most max. A sale read again replaces the kept one, keeping a
refund the earlier look saw if this one doesn’t say.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
read |
readonly Sale[] |
kept |
readonly Sale[] | undefined |
now |
Date |
options |
{ days?: number; max?: number; } |
options.days? |
number |
options.max? |
number |
Returns
Section titled “Returns”Sale[]