Closed Mawandaian closed 4 years ago
I want to select all rows where a column is equal to a given value, eg where sex = 'male', but I have failed to find the datalib function to help me do it.
Datalib "tables" are simply arrays of JavaScript objects. So you can use standard array methods, such as filter or find.
filter
find
I want to select all rows where a column is equal to a given value, eg where sex = 'male', but I have failed to find the datalib function to help me do it.