diff --git a/manifests/micro-utilities.json b/manifests/micro-utilities.json index 059f46d2..6bacafc8 100644 --- a/manifests/micro-utilities.json +++ b/manifests/micro-utilities.json @@ -54,6 +54,12 @@ "description": "You can convert to and from a `Set` to remove duplicates from an array.", "example": "const unique = (arr) => [...new Set(arr)]" }, + "snippet::assert": { + "id": "snippet::assert", + "type": "simple", + "description": "You can use a simple function to assert a value or an expression.", + "example": "function assert(val, msg) {\n if (!val) throw new Error(msg)\n}" + }, "snippet::async-function-constructor": { "id": "snippet::async-function-constructor", "type": "simple", @@ -837,6 +843,11 @@ "moduleName": "math-random", "replacements": ["snippet::math-random"] }, + "minimalistic-assert": { + "type": "module", + "moduleName": "minimalistic-assert", + "replacements": ["snippet::assert"] + }, "object-filter": { "type": "module", "moduleName": "object-filter",