metahash
v1.0.0
Published
Splits meta and data from an object, using the # as a prefix for meta.
Downloads
9
Readme
metahash
Splits meta and data from an object, using the # as a prefix for meta.
const metahash = require('metahash')
const object = {
"#title": 'critters',
'coyote': 1,
'fox': 2,
0: 'bear'
}
metahash.data( object )
// { coyote: 1, fox: 2, 0: 'bear' }
metahash.meta( object )
// { title: 'critters' }