Gimp.Item.prototype.is_layer

function is_layer(): Boolean {
    // Gjs wrapper for gimp_item_is_layer()
}
  

Returns whether the item is a layer.

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

Since 2.8

Returns

TRUE if the item is a layer, FALSE otherwise.