describe('expandKeys', () => {
it('expands keys', () => {
let expected = {
hello: {
world: 1,
galaxy: 2
},
three: {
dots: {
deep: {
son: {
wow: true
}
}
}
}
}
let expanded = expandKeys({
'hello.world': 1,
'hello.galaxy': 2,
'three.dots.deep.son': { wow: true }
})
expect(expanded).toEqual(expected)
})
})
expand-keys
1.0.4 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i expand-keys
Repository
Weekly Downloads
1
Version
1.0.4
License
ISC
Unpacked Size
3.27 kB
Total Files
3