From 7b676b742e65ff003f66ff9ba61b49d7787d50a8 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Thu, 25 May 2023 17:34:24 -0400 Subject: [PATCH] added `afterFirstWord`/`removeFirstWord`. --- src/index.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index f6fcdea..5ba2047 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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