Update checked-in dependencies
This commit is contained in:
parent
7fdbca3ba3
commit
357e0ceaa9
360 changed files with 25673 additions and 917 deletions
8
node_modules/@mswjs/interceptors/src/utils/isObject.ts
generated
vendored
Normal file
8
node_modules/@mswjs/interceptors/src/utils/isObject.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/**
|
||||
* Determines if a given value is an instance of object.
|
||||
*/
|
||||
export function isObject<T>(value: any, loose = false): value is T {
|
||||
return loose
|
||||
? Object.prototype.toString.call(value).startsWith('[object ')
|
||||
: Object.prototype.toString.call(value) === '[object Object]'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue