Socket
Socket
Sign inDemoInstall

turf-remove

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-remove

turf remove module


Version published
Weekly downloads
45
decreased by-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

turf-remove

Build Status

Removes any features from a feature collection that match a property value.

###Install

npm install turf-remove

###Parameters

namedescription
fcA FeatureCollection
propertyProperty to check
valueValue for features to remove

###Usage

remove(fc, property, value)

###Example

var remove = require('turf-remove')
var point = require('turf-point')
var featurecollection = require('turf-featurecollection')

var trees = t.featurecollection([t.point(1,2, {species: 'oak'}),
                                 t.point(2,1, {species: 'dogwood'}),
                                 t.point(3,1, {species: 'maple'})])

var remaining = remove(points, 'species', 'dogwood')

console.log(remaining)

Keywords

FAQs

Package last updated on 17 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc