tn-filterobj
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Bundle Size - 650 bytes gzipped

Usage

import { filterobj } from 'tn-filterobj'
const object = { ... }

const filtered = filterobj(object, ({ key, value }) => {
  if (!key.match(/^turnova/)) return false
  if (value < 0 || value > 100) return false
  return true
})

Readme

Keywords

none

Package Sidebar

Install

npm i tn-filterobj

Weekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

7.84 kB

Total Files

16

Last publish

Collaborators

  • turnova