stack

Home > @infiniteobjects/top-shot-service > filterMomentsByRetired

filterMomentsByRetired() function

Given a includeRetired (boolean) param and TopShotAssetWithCurrentTeam[] return a filtered TopShotAssetWithCurrentTeam[] based on matching boolean.

Signature:

export declare function filterMomentsByRetired(includeRetired: boolean): (moments: TopShotAssetWithCurrentTeam[]) => TopShotAssetWithCurrentTeam[];

Parameters

Parameter Type Description
includeRetired boolean  

Returns:

(moments: TopShotAssetWithCurrentTeam[]) => TopShotAssetWithCurrentTeam[]