Add eqeqeq rule but require == for null
This commit is contained in:
parent
64a4d2e717
commit
0086216c9d
30 changed files with 64 additions and 63 deletions
|
@ -2,4 +2,4 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export const isRecord = (value: unknown): value is Record<string, unknown> =>
|
||||
typeof value === 'object' && !Array.isArray(value) && value !== null;
|
||||
typeof value === 'object' && !Array.isArray(value) && value != null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue