Skip to content

Commit

Permalink
remove unused vars from fast-web-utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Apr 23, 2022
1 parent e72e58a commit 6417ba7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/utilities/fast-web-utilities/src/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,6 @@ export function startsWith(
return stringToSearch.substr(position, searchFor.length) === searchFor;
}

const wordRe = /([A-Z]+[a-z0-9]*|[A-Z]*[a-z0-9]+)/g;

/**
* Matches all instances of the RegExp in the string. Operates similarly to the
* native `String.matchAll`, which is not yet available on all supported
* browsers. Note that the regex *must* be global.
*/
function matchAll(re: RegExp, str: string): string[] {
const matches: string[] = [];

let match: RegExpExecArray | null;
while ((match = re.exec(str))) {
matches.push(match[1]);
}

re.lastIndex = 0;
return matches;
}

/**
* Determines if the specified string is undefined, null, empty, or whitespace.
* True if the value is undefined, null, empty, or whitespace, otherwise false.
Expand Down

0 comments on commit 6417ba7

Please sign in to comment.