Skip to content

Instantly share code, notes, and snippets.

@Gbahdeyboh
Created June 15, 2019 22:37
Show Gist options
  • Save Gbahdeyboh/ec666d2bca033fae59d2c193c93d8f95 to your computer and use it in GitHub Desktop.
Save Gbahdeyboh/ec666d2bca033fae59d2c193c93d8f95 to your computer and use it in GitHub Desktop.
let obj1 = {
a: 1,
b: 'string',
c: true,
d: () => 'wooow!!',
e: new Date(15, 7, 2019),
f: new RegExp('Gbadebo', 'gi'),
g: new Set([1, 2, 3, 4]),
h: [1, 2, 3, true, "gbadebo", new Date(15, 7, 2019), new Set([4, 5, 6, 7])],
i: {
name: "Bello Gbadebo",
nationality: "Nigerian",
age: 2000,
date: new Date(10, 15, 2017),
array: [
{
sets: new Set([3, 5, 6, 7]),
array: ['debo', true, 20394, {
language: 'javascript',
method: 'recursive',
innerArray: [2, new RegExp('Gbaebo', 'gi'), [2, 3, 4, {}, {}, {}, {}]]
}],
testSuite: 'jest'
},
{
sets: new Set([3, 5, 6, 7]),
array: ['debo', true, 20394, {
innerArray: [2, new RegExp('Gbaebo', 'gi'), [2, 3, 4, {}, {}, {}, {}]],
method: 'recursive',
language: 'javascript',
index: "element2"
}],
testSuite: 'jest'
}
]
}
}
let obj2 = {
b: 'string',
c: true,
e: new Date(15, 7, 2019),
f: new RegExp('Gbadebo', 'gi'),
a: 1,
d: () => 'wooow!!',
h: [1, 2, 3, true, "gbadebo", new Date(15, 7, 2019), new Set([4, 5, 6, 7])],
g: new Set([1, 2, 3, 4]),
i: {
nationality: "Nigerian",
age: 2000,
array: [
{
array: ['debo', true, 20394, {
language: 'javascript',
method: 'recursive',
innerArray: [2, new RegExp('Gbaebo', 'gi'), [2, 3, 4, {}, {}, {}, {}]]
}],
sets: new Set([3, 5, 6, 7]),
testSuite: 'jest'
},
{
sets: new Set([3, 5, 6, 7]),
array: ['debo', true, 20394, {
innerArray: [2, new RegExp('Gbaebo', 'gi'), [2, 3, 4, {}, {}, {}, {}]],
method: 'recursive',
language: 'javascript',
index: "element2"
}],
testSuite: 'jest'
}
],
date: new Date(10, 15, 2017),
name: "Bello Gbadebo"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment