ClassesBlockblockly.block.hasiconOn this pageHome > blockly > Block > hasIcon Block.hasIcon() method Signature: hasIcon(type: IconType<IIcon>): boolean; Parameters ParameterTypeDescriptiontypeIconType<IIcon> Returns: boolean True if an icon with the given type exists on the block, false otherwise.