Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1138x | /**
* Small checks on values read from JSON or handed over by a face's own code.
*/
/**
* Whether a value is a plain object, rather than null, an array, or a single value.
*
* @param value The value to check.
* @return True for an object that is not null and not an array.
*/
export function isObject(value: unknown): value is Record<string, unknown> {
return typeof value === 'object' && value !== null && !Array.isArray(value);
}
|