_dhar’s avatar_dhar’s Twitter Archive—№ 4,041

    1. ES6 destructuring applies nicely with RegExp @simevidas/662148496066273281
  1. …in reply to @_dhar
    Even better with defaults, to avoid a TypeError if it doesn't match: let {1: name, 2: num} = /(\D+)(\d+)/.exec('##') || [, '', 0];