clean-code-javascript icon indicating copy to clipboard operation
clean-code-javascript copied to clipboard

Elaboration on "use-explanatory-variables"

Open s-gbz opened this issue 5 years ago • 0 comments

I found the following example hard to understand. Especially on this part:

const [, city, zipCode] = address.match(cityZipCodeRegex) || [];

It might be a valuable addition to simplify or elaborate a bit more on it.

s-gbz avatar Jan 28 '20 17:01 s-gbz