Checks if the given values are of same type preventing NaN and Number same type check.
isSameType(true, false); // true isSameType(1, 3); // true isSameType({}, []); // false isSameType('', null); // false
The first value to check.
The other value to check.
Whether the values are of same type.
Generated using TypeDoc
Checks if the given values are of same type preventing NaN and Number same type check.
isSameType(true, false); // true isSameType(1, 3); // true isSameType({}, []); // false isSameType('', null); // false