Created
June 30, 2016 14:21
-
-
Save wolfflow/0b5538fcce2d8e91e0c3b59cbe12941a to your computer and use it in GitHub Desktop.
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
const makeFieldFn = (key) => (x) => (e) => e[key] === x; | |
module.exports = { | |
typeIs: makeFieldFn('type'), | |
keyCodeIs: makeFieldFn('keyCode'), | |
keyCodeIsIn: (range) => (e) => range.indexOf(e.keyCode) !== -1, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment