Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
change(index, value) {
this.value[index - 1] = value
const eq = curry((index, arr) => arr[index])
compose(
css({
backgroundImage: `url(${this.options.getImage(value)})`
}),
find(`.${this.classes.ITEMIMAGE}`),
eq(index),
children,
find(`.${this.classes.ITEMS}`)
)(this.$panel)
this.TRIGGER.setState()
}