text: /**
   * Determines if a string is surrounded by a left and right pattern
   * @param {string} string - The string to query.
   * @param {string} [leftPattern=''] - The pattern to match at the beginning of the string.
   * @param {string} [rightPattern=''] - The pattern to match at the end of the string.
   * @returns {boolean} Returns true if the string is surrounded by patterns
   * @example
   * isBetween('my string');
   * // returns true
   * @example
   * isBetween('my string', 'my');
   * // returns true
   * @example
   * isBetween('my string', 'my', 'ing');
   * // returns true
   * @example
   * isBetween('my string', '', 'eng');
   * // returns false
   */
  const isBetween = (string, leftPattern = '', rightPattern = '') => (
    string.indexOf(leftPattern) > -1 && string.indexOf(rightPattern) > -1
  );
  
  export default isBetween;
  