I using next code to check that item is component:
$models.getItemType(itemId) == $const.ItemType.COMPONENT
It work fine for me, but I need to check that given component is multimedia component, the $models.getItemType(itemId) returns "tcm:16" for component and multimedia component as well. Is there any other way to check this?