src/js/base/core/dom.js
function isSamePoint(pointA, pointB) {
  return pointA.node === pointB.node && pointA.offset === pointB.offset;
}
function isSamePoint(pointA, pointB) {
  return pointA.node === pointB.node && pointA.offset === pointB.offset;
}
function isSamePoint ( pointA , pointB ) { return pointA . node === pointB . node && pointA . offset === pointB . offset ; }
returns whether pointA and pointB is same or not.

@param {BoundaryPoint} pointA
@param {BoundaryPoint} pointB
@return {Boolean}
returns whether pointA and pointB is same or not .