I have a line in code that looks like this:
const [full, text, url] = markdownLink.exec(match) || [null, null, '']
However I am not using full
and the linter is giving me a warning.
Line 28: 'full' is assigned a value but never used
I'd like to declare the tuple like this, but I don't need full
. Is there a syntactical way to fix this by skipping full?
const [, text, url] = ...
work? – Swaney