robbb_J’s avatarrobbb_J’s Twitter Archive—№ 2,136

    1. Today's JavaScript that I'm not sure if I like that it works or not: const message = { type: "info", info: 42 } const { type, [type]: payload } = message Now "type" and "payload" are destructured into variables, but it doesn't sit right.
  1. …in reply to @Robbb_J
    And “payload” is 42