Type Alias: RowPredicate¶
RowPredicate = (
row,i) =>boolean
Predicate function for filter.
Receives a row as Map<string, Cell> and its 0-based index.
Return true to keep the row.
Parameters¶
row¶
Map\<string, Cell>
i¶
number
Returns¶
boolean
Example¶
TypeScript
const isAdult: RowPredicate = (row) => (row.get("age") as number) > 18;
df.filter(isAdult);