Gimp.Item.prototype.is_layer_mask

function is_layer_mask(): Boolean {
    // Gjs wrapper for gimp_item_is_layer_mask()
}
  

Returns whether the item is a layer mask.

This procedure returns TRUE if the specified item is a layer mask.

Since 2.8

Returns

TRUE if the item is a layer mask, FALSE otherwise.