mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Add eqeqeq rule but require == for null
This commit is contained in:
@@ -7,7 +7,7 @@ import { getOwn } from './getOwn';
|
||||
|
||||
export function isIterable(value: unknown): value is Iterable<unknown> {
|
||||
return (
|
||||
(typeof value === 'object' && value !== null && Symbol.iterator in value) ||
|
||||
(typeof value === 'object' && value != null && Symbol.iterator in value) ||
|
||||
typeof value === 'string'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user