Skip to content
Merged
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 @@ -132,6 +132,12 @@
"description": "You can use the modulo operator to check if a number is even.",
"example": "(n % 2) === 0"
},
"snippet::is-generator-function": {
"id": "snippet::is-generator-function",
"type": "simple",
"description": "You can use `typeof` and `Object.prototype.toString.call` to check if a value is a generator function",
"example": "const isGeneratorFunction = (obj) => typeof obj === \"function\" && Object.prototype.toString.call(obj) === \"[object GeneratorFunction]\""
},
"snippet::is-in-ssh": {
"id": "snippet::is-in-ssh",
"type": "simple",
Expand Down Expand Up @@ -438,6 +444,11 @@
"moduleName": "is-even",
"replacements": ["snippet::is-even"]
},
"is-generator-function": {
"type": "module",
"moduleName": "is-generator-function",
"replacements": ["snippet::is-generator-function"]
},
"is-in-ssh": {
"type": "module",
"moduleName": "is-in-ssh",
Expand Down