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 @@ -144,6 +144,12 @@
"description": "You can indent every non-empty line with `String.prototype.replace`, or use `/^/gm` to also indent empty lines, matching the package's `includeEmptyLines` option.",
"example": "const indentString = (string, count = 1, indent = ' ') =>\n string.replace(/^(?!\\s*$)/gm, indent.repeat(count));"
},
"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 @@ -792,6 +798,11 @@
"moduleName": "iota-array",
"replacements": ["snippet::array-from-count"]
},
"is-alphanumerical": {
"type": "module",
"moduleName": "is-alphanumerical",
"replacements": ["snippet::is-alphanumerical"]
},
"is-arguments": {
"type": "module",
"moduleName": "is-arguments",
Expand Down