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);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(red.equals(green)); // logs false

var opaqueRed = kendo.Color.fromBytes(255,0,0,1);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(red.equals(opaqueRed)); // logs true
</script>
In this article