* Checks whether the value is POJO (e.g. `{ foo: 'bar' }`, and not instance of `Foo`)
(value: any)
| 780 | * Checks whether the value is POJO (e.g. `{ foo: 'bar' }`, and not instance of `Foo`) |
| 781 | */ |
| 782 | static isPlainObject<T extends Dictionary>(value: any): value is T { |
| 783 | return ( |
| 784 | (value !== null && |
| 785 | typeof value === 'object' && |
| 786 | typeof value.constructor === 'function' && |
| 787 | (Object.hasOwn(value.constructor.prototype, 'isPrototypeOf') || |
| 788 | Object.getPrototypeOf(value.constructor.prototype) === null)) || |
| 789 | (value && Object.getPrototypeOf(value) === null) || |
| 790 | value instanceof PlainObject |
| 791 | ); |
| 792 | } |
| 793 | |
| 794 | /** |
| 795 | * Executes the `cb` promise serially on every element of the `items` array and returns array of resolved values. |
no outgoing calls
no test coverage detected