This error is coming up in jslint, how would I fix this line?
const {
width,
height,
...options
} = opts;
Full Code:
https://jsfiddle.net/zt7anuL3/18/
Section of the code where the line is:
function initPlayer(wrapper) {
const video = wrapper.querySelector(".video");
let settings = {};
const {
width,
height,
...options
} = opts;
settings.width = width || 198;
settings.height = height || 198;
settings.playerVars = options.playerVars || options;
videoPlayer.init(video, settings);
}