src/index.js
function _stringsByCharOrder(stringToMatch, givenString) {
  const matchingIndexes = getMatchingStringIndexes(stringToMatch, givenString);
  if (!matchingIndexes || !matchingIndexes.length) {
    return _matchRankMap.noMatch;
  } else {
    return _matchRankMap.matches;
  }
}
function _stringsByCharOrder(stringToMatch, givenString) {
  const matchingIndexes = getMatchingStringIndexes(stringToMatch, givenString);
  if (!matchingIndexes || !matchingIndexes.length) {
    return _matchRankMap.noMatch;
  } else {
    return _matchRankMap.matches;
  }
}
function _stringsByCharOrder ( stringToMatch , givenString ) { const matchingIndexes = getMatchingStringIndexes ( stringToMatch , givenString ) ; if ( ! matchingIndexes || ! matchingIndexes . length ) { return _matchRankMap . noMatch ; } else { return _matchRankMap . matches ; } }
Returns a _matchRankMap.matches or noMatch score based on whether
the characters in the givenString are found in order in the
stringToMatch
@param {string} stringToMatch - the string to match
@param {string} givenString - the string that is given
@returns {number} - matches rank or noMatch rank
@private
Returns a _matchRankMap . matches or noMatch score based on whether the characters in the givenString are found in order in the stringToMatch