code: function _getInsertionIndex(insertInfo) {
    // Get lowest index that isn't zero
    const handleIndexArray = insertInfo.handleIndexArray;
    let insertIndex = Infinity;
    const arrayContainsZero = handleIndexArray.includes(0);
  
    for (let i = 0; i < handleIndexArray.length; i++) {
      const index = handleIndexArray[i];
  
      if (index !== 0 && index < insertIndex) {
        insertIndex = index;
      }
    }
  
    // Treat the special case of handleIndexArray === [0,1] || [1,0]
    if (arrayContainsZero && insertIndex === 1) {
      insertIndex = 0;
    }
  
    // The insertion index shall be just after the lower index
    insertIndex++;
  
    return insertIndex;
  }
docs: Gets the handle index of a tool in which to insert the new point.
  @private
  @method
  
  @param {Object} insertInfo - Object containing information about where to insert the point.
  @returns {void}