equals

Compares two color objects for equality.

Returns

Boolean returns true if the two colors are the same. Otherwise, false

Example

<script>
var red = kendo.Color.fromRGB(1,0,0);
var green = kendo.Color.fromRGB(0,1,0);
console.log(red.equals(green)); // logs false

var opaqueRed = kendo.Color.fromBytes(255,0,0,1);
console.log(red.equals(opaqueRed)); // logs true
</script>
In this article
Not finding the help you need?