Primitive
array.filter
BETAShort name: filter
Version: 1.0.0
Filter an array of objects by a value at a key path. With `contains` (case-insensitive substring) or `equals` (exact). An empty/absent criterion returns the array unchanged, so a blank query is a no-op.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| array | array | true | Array of source objects to filter. |
| contains | string | false | Case-insensitive substring the path value must contain. |
| equals | string | false | Exact value the path must equal. |
| path | string | true | Key path to compare on each element (e.g. 'title'). |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | array | false | Filtered array copy. |