6 lines
233 B
TypeScript
6 lines
233 B
TypeScript
|
// Copyright 2021 Signal Messenger, LLC
|
||
|
// 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;
|