📄 isSameType.js
/home/palash/git/site/node_modules/es-abstract/helpers/isSameType.js
Language: js • Lines: 16
'use strict';

module.exports = function isSameType(x, y) {
	if (x === y) {
		return true;
	}

	if (typeof x === typeof y) {
		if (typeof x !== 'object' || typeof y !== 'object') {
			return true;
		}
		return !!x === !!y;
	}

	return false;
};