New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loopback-filters

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-filters

Apply LoopBack filters to Arrays

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by9.27%
Maintainers
1
Weekly downloads
 
Created
Source

loopback-filters

This module implements LoopBack style filtering.

Install

$ npm install loopback-filters

Usage

Below is a basic example using the module

var data = [{foo: 'bar'}, {bat: 'baz'}, {foo: 'bar'}];
var filter = {where: {foo: 'bar'}};
var filtered = require('loopback-filters')(data, filter);
console.log(filtered);

The output would be:

[{foo: 'bar'}, {foo: 'bar'}]

Docs

See the LoopBack docs for the filter syntax.

Keywords

FAQs

Package last updated on 23 Jun 2015

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