UNPKG

4nm

Version:

TypeScript reimplementation of Telegram's official library for communicating with Telegram Web Apps.

8 lines (7 loc) 219 B
/** * States that passed value is Record and not Array. * @param value - value to check. */ export function isRecord(value) { return typeof value === 'object' && value !== null && !Array.isArray(value); }