1.1.5 • Published 4 years ago
obj-dec v1.1.5
Object Decomposer
{
a: {
a: [
'a',
true
]
},
b: 'Hello world',
c: [
{
e: true
}
],
}
Will be like this
Syntax
const print = require('obj-dec');
const a = {
a: {
a: [
'a',
true
]
},
b: 'Hello world',
c: [
{
e: true
}
],
}
print(a);
The print function recivies two parameters
Data
The object to Print
Depth
How depth will excavate in the data.
It could be true
fot ignore depth or a number finite