mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-29 12:30:07 +00:00
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
import { typeOf } from '@ember/utils';
|
|
|
|
/**
|
|
* Checks if a type is an object
|
|
* @param {any} candidate the entity to check
|
|
*/
|
|
// @ts-ignore
|
|
export const isObject = (candidate: unknown): candidate is object => typeOf(candidate) === 'object';
|