Created
August 25, 2020 19:34
-
-
Save mjgartendev/48fea80ac1f76619559f74bfcef8aed5 to your computer and use it in GitHub Desktop.
A collection of common utilities
This file contains hidden or 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
// pipe | |
// curry |
This file contains hidden or 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 letter = /[a-zA-Z]/g | |
const digit = /[0-9]/ | |
const formEls = /^(?:input|select|textarea)$/i | |
const keyEvent = /^key/ | |
const mouseEvent = /^(?:mouse|contextmenu)|click/ | |
const focusMorph = /^(?:focusinfocus|focusoutblur)$/ | |
const typenamespace = /^([^.]*)(?:\.(.+)|)$/ | |
const escapedHtml = /&(?:amp|lt|gt|quot|#39);/g | |
const emptyStringLeading = /\b__p \+= '';/g | |
const emptyStringMiddle = /\b(__p \+=) '' \+/g | |
const emptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g |
This file contains hidden or 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
// Unpkg | |
// Gist | |
// Github | |
// SchemaStore |
This file contains hidden or 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
// Constructor | |
// Mixin | |
// Plugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment