|
|
|
|
|
by lelandfe
485 days ago
|
|
I've seen that before. A related conventional use of underscores in JS variable names is when "discarding" values in positional settings, like destructuring arrays. E.g. `const [_, a, b] = triple` In general, underscores in JS seem to be used to help call out what to ignore or what is less important. |
|
But yeah for every other time most linters will accept _ as "ignore this".