stack

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

filterMomentsByLeague() function

Given a leagues (MomentLeague[]) param and ITopShotAssetToken[] return a filtered ITopShotAssetToken[] based on provided leagues param.

Signature:

export declare function filterMomentsByLeague(filterLeagues: (keyof typeof MomentLeague)[]): (moments: ITopShotAssetToken[]) => ITopShotAssetToken[];

Parameters

Parameter Type Description
filterLeagues (keyof typeof MomentLeague)[]  

Returns:

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