develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 987

    1. …in reply to @ThePunderWoman
      @ThePunderWoman Spread can be clearer in more elaborate cases like: [first, ...rest, last] It's just the singular [...x] where I think Array.from() is a clear winner. I guess array conversion should be verbose for clarity, but concatenation should use spread to reduce noise.
  1. …in reply to @develwoutacause
    @ThePunderWoman If the intent is to convert an iterable to an array, then Array.from() expresses that intent more clearly. If the intent is to concatenate multiple arrays, then spread has much less noise to communicate that intent more clearly.