Last active
January 28, 2016 17:43
-
-
Save xyfeng/68527b8abd73f364387b to your computer and use it in GitHub Desktop.
Web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 1 to N */ | |
var range = function (n) { | |
return Array(n).join().split(',').map(function(e, i) { return i; }); | |
} | |
/* diffs */ | |
array_1.filter( (i)=>{ | |
return array_2.indexOf(i) < 0; | |
}); | |
/* input number only */ | |
<input type='text' onkeypress='return event.charCode >= 48 && event.charCode <= 57' /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment