How to effect destructurization?

How to write following constructor:
constructor({
 container: slider_container = 'container', 
 slides: slides_name = 'slide', 
 controls: {state, previusAnimation, nextAnimation} = {false, null, null}
})
June 8th 19 at 17:21
1 answer
June 8th 19 at 17:23
Solution
constructor({
 container: slider_container = 'container', 
 slides: slides_name = 'slide',
 controls: { state = false, previousAnimation = null, nextAnimation = null } = {}
})

Find more questions by tags JavaScript