Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions manifests/micro-utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@
"description": "You can check if a character is an ASCII letter by using a case-insensitive `RegExp`.",
"example": "const isAlphabetical = (char) => /^[a-z]$/i.test(char);"
},
"snippet::is-alphanumerical": {
"id": "snippet::is-alphanumerical",
"type": "simple",
"description": "You can check if the first character of a string, or a character code, is ASCII alphanumerical by comparing its code against the `0`-`9`, `A`-`Z`, and `a`-`z` ranges.",
"example": "const isAlphanumerical = (character) => {\n const code =\n typeof character === 'string' ? character.charCodeAt(0) : character;\n return (code >= 48 && code <= 57) ||\n (code >= 65 && code <= 90) ||\n (code >= 97 && code <= 122);\n};"
},
"snippet::is-arguments": {
"id": "snippet::is-arguments",
"type": "simple",
Expand Down Expand Up @@ -1082,6 +1088,11 @@
"moduleName": "is-alphabetical",
"replacements": ["snippet::is-alphabetical"]
},
"is-alphanumerical": {
"type": "module",
"moduleName": "is-alphanumerical",
"replacements": ["snippet::is-alphanumerical"]
},
"is-arguments": {
"type": "module",
"moduleName": "is-arguments",
Expand Down