extract-object
v1.0.0
Published
Extract text tokens from serializable object
Downloads
10
Readme
extract-object
Extract text tokens from serializable object.
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