Advertisement
Guest User

Untitled

a guest
Sep 24th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // same as ES5.1
  2. "𠮷".length == 2
  3.  
  4. // new RegExp behaviour, opt-in ‘u’
  5. "𠮷".match(/./u)[0].length == 2
  6.  
  7. // new form
  8. "\u{20BB7}"=="𠮷"=="\uD842\uDFB7"
  9.  
  10. // new String ops
  11. "𠮷".codePointAt(0) == 0x20BB7
  12.  
  13. // for-of iterates code points
  14. for(var c of "𠮷") {
  15. console.log(c);
  16. }
  17.  
  18. !!!! Modules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement