Guest User

Untitled

a guest
Jul 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. isAscii("é") //false
  2.  
  3. function isAscii(str) {
  4. for (var i = 0, strLen = str.length; i < strLen; ++i) {
  5. if (str.charCodeAt(i) > 125) return false;
  6. }
  7. return true;
  8. }
Add Comment
Please, Sign In to add comment