diff --git a/lib/utils/object/equals.js b/lib/utils/object/equals.js
index <HASH>..<HASH> 100644
--- a/lib/utils/object/equals.js
+++ b/lib/utils/object/equals.js
@@ -1,6 +1,10 @@
 const entries = require("./entries");
 
 module.exports = (a, b) => {
+	if (typeof a !== "object" || typeof b !== "object") {
+		return a === b;
+	}
+
 	const aEntries = entries(a);
 	const bEntries = entries(b);
 	const bEntriesMap = bEntries.reduce((res, value) => {
Adding support for equals across types