This commit is contained in:
Tony Xia 2021-11-26 11:27:01 -08:00 committed by GitHub
commit 45a6006901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ export function isStringArray(value: unknown): value is string[] {
*/
export function isObject(obj: unknown): obj is Object {
// The method can't do a type cast since there are type (like strings) which
// are subclasses of any put not positvely matched by the function. Hence type
// are subclasses of any put not positively matched by the function. Hence type
// narrowing results in wrong results.
return typeof obj === 'object'
&& obj !== null