W
W
Wasya UK2018-01-31 18:24:08
JavaScript
Wasya UK, 2018-01-31 18:24:08

How to properly destruct?

How to write the following constructor correctly:

constructor({
  container: slider_container = 'container', 
  slides: slides_name = 'slide',  
  controls: {state, previusAnimation, nextAnimation} = {false, null, null}
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-01-31
@dmc1989

constructor({
  container: slider_container = 'container', 
  slides: slides_name = 'slide',
  controls: { state = false, previousAnimation = null, nextAnimation = null } = {}
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question