I found that slightly counterintuitive to start with, too, when you're used to name = value. The easiest way I find to remember the order is { from: to } = obj. Also, it wouldn't make much sense to use { to: from } = obj because you're no longer putting the from in the same position as the key is in the object.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I found that slightly counterintuitive to start with, too, when you're used to
name = value
. The easiest way I find to remember the order is{ from: to } = obj
. Also, it wouldn't make much sense to use{ to: from } = obj
because you're no longer putting thefrom
in the same position as the key is in the object.