code: function isPartialOfCase(testString, stringToRank, caseRanking) {
    const testIndex = testString.toLowerCase().indexOf(stringToRank.toLowerCase())
  
    switch (caseRanking) {
      case caseRankings.SNAKE:
        return testString[testIndex - 1] === '_'
      case caseRankings.KEBAB:
        return testString[testIndex - 1] === '-'
      case caseRankings.PASCAL:
      case caseRankings.CAMEL:
        return (
          testIndex !== -1 &&
          testString[testIndex] === testString[testIndex].toUpperCase()
        )
      default:
        return false
    }
  }
docs: Returns whether the stringToRank is one of the case parts in the testString (works with any string case)
  @example
  // returns true
  isPartialOfCase('helloWorld', 'world', caseRankings.CAMEL)
  @example
  // returns false
  isPartialOfCase('helloWorld', 'oworl', caseRankings.CAMEL)
  @param {String} testString - the string to test against
  @param {String} stringToRank - the string to rank
  @param {Number} caseRanking - the ranking score based on case of testString
  @returns {Boolean} whether the stringToRank is one of the case parts in the testString