Guest User

Untitled

a guest
Apr 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. const [all, year, month, day] = /([0-9]*)\-([0-9]*)\-([0-9]*)/.exec('2018-04-03')
  2. console.log(all, year, month, day)
Add Comment
Please, Sign In to add comment