# api-builder-plugin-filterarrayofobjects

> A plugin for Axway API Builder

Latest version **1.0.3** (published 2022-09-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install api-builder-plugin-filterarrayofobjects
pnpm add api-builder-plugin-filterarrayofobjects
yarn add api-builder-plugin-filterarrayofobjects
bun add api-builder-plugin-filterarrayofobjects
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-09-19 |
| First published | 2021-06-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.15 |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lbrenman |
| Keywords | amplify, api-builder |

## Links

- npm: https://www.npmjs.com/package/api-builder-plugin-filterarrayofobjects
- npm.io page: https://npm.io/package/api-builder-plugin-filterarrayofobjects

## Dependencies (1)

- [@axway/api-builder-sdk](https://npm.io/package/@axway/api-builder-sdk.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2022-09-19
- 1.0.2 — 2021-06-23
- 1.0.1 — 2021-06-23
- 1.0.0 — 2021-06-23

## README

# API Builder Plugin to Filter an Array Based on a Keys Value

[**Axway API Builder**](https://docs.axway.com/bundle/API_Builder_4x_allOS_en/page/api_builder.html) flow-node that use the array filter() method to return a filtered array based on a key's value: *api-builder-plugin-filterarrayofobjects*. This is a common requirement for processing API responses for retrieving desired array elements.

> Note: Currently only supports String and Number values

## About flow-nodes

Flow-nodes are used within [Axway API Builder's](https://www.axway.com/en/datasheet/axway-api-builder)
flow editor that is a low-code / no-code solution to designing and developing services
that integrate to many different connected components, such as databases and APIs.

## Install

After creating your [**API Builder Project**](https://docs.axway.com/bundle/API_Builder_4x_allOS_en/page/api_builder_getting_started_guide.html), you can install this plugin using npm:

```
npm install api-builder-plugin-filterarrayofobjects
```

> Note that this command will install from npm. If you want to install locally, then provide the full path to the plugin folder

## Use

Find the plugin in the extension group in the Flow-Nodes panel. Drag onto the canvas and select the desired method and provide the input and wire up to the rest of your flow as shown below:

![](https://i.imgur.com/gDRYIJj.png)

## Methods

The currently implemented methods are described below.

### Filter

Provide the *Array*, *Key* and *Value* inputs and the output will be similar to below:

Array = [{a:'100', b:'red'}, {a:'200', b:'green'}, {a:'300', b:'blue'}]

Key = 'b'

Value = 'green'

```
{
  a:'200',
  b:'green'
}
```

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