1.0.0 • Published 9 years ago

extract-object v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

extract-object

Extract text tokens from serializable object.

Build Status

npm install extract-object

extract(obj, tokens)

Extract text tokens from serializable obj, optionally pass array tokens as reference.

var extract = require('extract-object')

console.log(extract({
  a: 'foo bar',
  c: ['hello'],
  d: { asdf: { ghjk: 'world' } },
  e: 167,
  f: null
}))

// ['foo bar', 'hello', 'world']

License

MIT

1.0.0

9 years ago