# rbx-filters

> Convenient filter functions for roblox-ts functional programming

Latest version **1.0.1** (published 2019-05-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install rbx-filters
pnpm add rbx-filters
yarn add rbx-filters
bun add rbx-filters
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-05-30 |
| First published | 2019-05-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | osyris |

## Links

- npm: https://www.npmjs.com/package/rbx-filters
- Repository: https://github.com/osyrisrblx/rbx-filters
- Homepage: https://github.com/osyrisrblx/rbx-filters#readme
- Issues: https://github.com/osyrisrblx/rbx-filters/issues
- npm.io page: https://npm.io/package/rbx-filters

## Recent versions

- 1.0.1 (latest) — 2019-05-30
- 1.0.0 — 2019-05-28

## README

# rbx-filters
Convenient filter functions for roblox-ts functional programming

## filterIsA
```TS
game.GetDescendants()
	.filter(filterIsA("BasePart"))
	.forEach(x => print(x.Size)); // Part | WedgePart | ...
```

## filterClass
```TS
game.GetDescendants()
	.filter(filterClass("Script"))
	.forEach(x => print(x.GetFullName())); // only Script objects, no LocalScript
```

## filterProps
```TS
game.GetDescendants()
	.filter(filterIsA("BasePart"))
	.filter(
		filterProps({
			Size: new Vector3(4, 4, 4)
		})
	)
	.forEach(x => print(x.Size)); // 4, 4, 4
```

---
_Source: https://npm.io/package/rbx-filters · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
