1.0.0 • Published 9 years ago
extract-object v1.0.0
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
1.0.0
9 years ago