ESLint gives an error for link = link.split("?")[0]. It says to use array destructuring. But if i use array destructuring, then the code will be
let [ temp ] = link.split("?");
link = temp;
This results in the use of an extra variable. Is there another way to do it without creating an extra variable and avoiding the ESLint error. Thank You.