diff --git a/manifests/micro-utilities.json b/manifests/micro-utilities.json index e15f5cdb..1ff0e9df 100644 --- a/manifests/micro-utilities.json +++ b/manifests/micro-utilities.json @@ -264,6 +264,12 @@ "description": "You can use `typeof` to check if a value is an object and `Object.getPrototypeOf` to ensure it's a plain object.", "example": "const isObject = (obj) => obj && typeof obj === \"object\" && (Object.getPrototypeOf(obj) === null || Object.getPrototypeOf(obj) === Object.prototype);" }, + "snippet::is-object-and-not-regexp": { + "id": "snippet::is-object-and-not-regexp", + "type": "simple", + "description": "You can use `typeof` to check if a value is an object and is not a `RegExp`.", + "example": "const isObjectAndNotRegExp = (v) => v != null && typeof v === \"object\" && v.constructor !== RegExp" + }, "snippet::is-object-or-function": { "id": "snippet::is-object-or-function", "type": "simple", @@ -962,6 +968,11 @@ "moduleName": "object.reduce", "replacements": ["snippet::object-reduce"] }, + "objectorarray": { + "type": "module", + "moduleName": "objectorarray", + "replacements": ["snippet::is-object-and-not-regexp"] + }, "path-key": { "type": "module", "moduleName": "path-key",