cheminfo / cheminfo/smart-array-filter

Handle boolean values

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```javascript
const array = [
{
active: false,
name: "Cheetah",
lifeExpectancy: 10,
taxonomy: {
phylum: "Chordata",
class: "Mammalia",
order: "Carnivora",
family: "Felidae",
},
characteristics: {
prey: "Gazelle, Wildebeest, Hare",
distinctiveFeature: "Yellowish fur covered in small black spots",
},
locations: ["Africa", "Asia", "Eurasia"],
},
{
active: true,
name: "Gorilla",
lifeExpectancy: 41,
taxonomy: {
phylum: "Chordata",
class: "Mammalia",
order: "Primates",
family: "Hominidae",
},
locations: ["Africa"],
},
];
```

In the above array I have added active: true/false

Is there a way to filter by boolean?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.