(value: unknown)
| 98 | |
| 99 | // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types |
| 100 | function isPlainObject(value: unknown): value is Object { |
| 101 | if (Object.prototype.toString.call(value) !== '[object Object]') { |
| 102 | return false |
| 103 | } |
| 104 | |
| 105 | const prototype = Object.getPrototypeOf(value) |
| 106 | return prototype === null || prototype === Object.prototype |
| 107 | } |
| 108 | |
| 109 | function isFunction(value: unknown): value is Function { |
| 110 | return typeof value === 'function' |