Destructuring default values with empty strings

# Cyril Auburtin (9 years ago)

when doing

let [tag = 'cat', ...cls] = '.foo.bar'.split('.')

I'd find it more logical to use the default value for all falsy values like an empty string '' for the tag variable.

but the default value isn't applied there

# John Lenz (9 years ago)

I think an appropriate map call will let you do anything you want here.