import { IType } from "./IType" ; param { any } item param { IType < T > } type return { boolean } see https export function isInstanceOfType < T > ( item , type ) { return item instanceof type || item . constructor === type ; }