# turf-remove

> turf remove module

Latest version **1.0.1** (published 2015-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install turf-remove
pnpm add turf-remove
yarn add turf-remove
bun add turf-remove
```

## 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.1 |
| Published | 2015-02-06 |
| First published | 2014-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | morganherlocker |
| Maintainers | morganherlocker, mourner, jvrousseau, jseppi, cspanring, cwmma, lyzidiamond, tmcw |
| Keywords | geojson, remove, features, featurecollection, properties |

## Links

- npm: https://www.npmjs.com/package/turf-remove
- Repository: https://github.com/Turfjs/turf-remove
- Issues: https://github.com/Turfjs/turf-remove/issues
- npm.io page: https://npm.io/package/turf-remove

## Dependencies (1)

- [turf-featurecollection](https://npm.io/package/turf-featurecollection.md) ^1.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-02-06
- 1.0.0 — 2014-12-11
- 0.1.2 — 2014-07-17
- 0.1.1 — 2014-06-02
- 0.1.0 — 2014-04-03

## README

# turf-remove

[![build status](https://secure.travis-ci.org/Turfjs/turf-remove.png)](http://travis-ci.org/Turfjs/turf-remove)

turf remove module


### `turf.remove(features, property, value)`

Takes a FeatureCollection, a property, and a value and
returns a FeatureCollection with features matching that
property-value pair removed.


### Parameters

| parameter  | type              | description                     |
| ---------- | ----------------- | ------------------------------- |
| `features` | FeatureCollection | a FeatureCollection of any type |
| `property` | String            | the property to filter          |
| `value`    | String            | the value to filter             |


### Example

```js
var points = turf.featurecollection([
 turf.point([-0.235004, 5.551918], {'marker-color': '#00f'}),
 turf.point([-0.209598, 5.56439], {'marker-color': '#f00'}),
 turf.point([-0.197753, 5.556018], {'marker-color': '#00f'}),
 turf.point([-0.217323, 5.549526], {'marker-color': '#000'}),
 turf.point([-0.211315, 5.543887], {'marker-color': '#0f0'}),
 turf.point([-0.202217, 5.547134], {'marker-color': '#00f'}),
 turf.point([-0.231227, 5.56644], {'marker-color': '#0f0'})
]);

//=points

var filtered = turf.remove(points, 'marker-color', '#00f');

//=filtered
```

## Installation

Requires [nodejs](http://nodejs.org/).

```sh
$ npm install turf-remove
```

## Tests

```sh
$ npm test
```

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