const hasSameRange = (node1, node2) =>
	node1
	&& node2
	// eslint-disable-next-line internal/no-restricted-property-access
	&& node1.range[0] === node2.range[0]
	// eslint-disable-next-line internal/no-restricted-property-access
	&& node1.range[1] === node2.range[1];

export default hasSameRange;
