clay-list-filter

2.1.13 • Public • Published

clay-list-filter

Build Status npm Version JS Standard

Listing filter for ClayDB

Installation

$ npm install clay-list-filter --save

Usage

'use strict'

const { filterArray } = require('clay-list-filter')

{
  let source = [ { name: 'foo' }, { name: 'bar' } ]
  let condition = { name: 'foo' }

  let filtered = filterArray(source, condition)
  console.log(filtered) // -> [ { name: 'foo' } ]
}

Functions

Available functions

Signature Description
filterArray(array, conditions) -> Object[] Filter array with condition

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i clay-list-filter

Weekly Downloads

5

Version

2.1.13

License

Apache-2.0

Unpacked Size

56.1 kB

Total Files

37

Last publish

Collaborators

  • okunishinishi
  • realglobe