UNPKG

@polgubau/utils

Version:

A collection of utility functions for TypeScript

1 lines 461 B
{"version":3,"sources":["../../../../src/comparators/is-object/is-object.ts"],"sourcesContent":["/**\n * Check if provided parameter is plain object\n * @param item\n * @returns boolean\n */\nexport function isObject(item: unknown): item is Record<string, unknown> {\n return item !== null && typeof item === \"object\" && item.constructor === Object;\n}\n"],"mappings":";AAKO,SAAS,SAAS,MAAgD;AACvE,SAAO,SAAS,QAAQ,OAAO,SAAS,YAAY,KAAK,gBAAgB;AAC3E;","names":[]}