Skip to content

Use destructuring instead of string slices.#3

Open
barraponto wants to merge 1 commit intogergob:masterfrom
barraponto:patch-2
Open

Use destructuring instead of string slices.#3
barraponto wants to merge 1 commit intogergob:masterfrom
barraponto:patch-2

Conversation

@barraponto
Copy link
Contributor

One could also write const [key, value=''] = item.split('=') to make it a oneliner, but I feel like that hurts legibility...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant