My LogiX is Undeniable.
// This is how to check , form is modified or not using getIsDirty() function.
// This function will return True in case of form is modified
// Get modified form
var ismodified = Xrm.Page.data.entity.getIsDirty();