pointer-event.esm.js
function getTouchById(touches, id) {
  if (touches != null && id != null) {
    for (var i = 0; i < touches.length; i++) {
      if (touches[i].identifier === id) {
        return touches[i];
      }
    }
  }
  return null;
}
function getTouchById(touches, id) {
  if (touches != null && id != null) {
    for (var i = 0; i < touches.length; i++) {
      if (touches[i].identifier === id) {
        return touches[i];
      }
    }
  }
  return null;
}
function getTouchById ( touches , id ) { if ( touches != null && id != null ) { for ( var i = 0 ; i < touches . length ; i ++ ) { if ( touches [ i ] . identifier === id ) { return touches [ i ] ; } } } return null ; }
Get Touch instance in list.
@param {Touch[]} touches - An Array or TouchList instance.
@param {number} id - Touch#identifier
@returns {(Touch|null)} - A found Touch instance.
Get Touch instance in list .