Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. let dateSeparator = /([\W]){1}\w*?\1{1}/ig.exec(moment.localeData("ja").longDateFormat("L"))[1]
  2.  
  3. dateParts = moment.localeData("ja").longDateFormat("L").split(dateSeparator).reduce(function(tokens, part) {
  4. return tokens.concat(part.toLowerCase().charAt(0));
  5. }, []);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement