added afterFirstWord/removeFirstWord.

This commit is contained in:
Spencer Brower
2023-05-25 17:34:24 -04:00
parent 337942657a
commit 7b676b742e

View File

@@ -29,15 +29,9 @@ export const beforeFirst = curry((separator: string, str: string) =>
// @todo Test
export const beforeFirstWord = beforeFirst(" ");
// /**
// * @param {String} str
// * @return {String}
// */
// export function afterFirstWord(str) {
// return afterFirst(' ', str);
// }
// export const removeFirstWord = afterFirstWord;
// @todo Test
export const afterFirstWord: (str: string) => string = afterFirst(" ");
export const removeFirstWord: (str: string) => string = afterFirstWord;
// /**
// * @param {Number} maxChars