mirror of
https://github.com/sbrow/strings.git
synced 2025-12-29 15:17:38 -05:00
added afterFirstWord/removeFirstWord.
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -29,15 +29,9 @@ export const beforeFirst = curry((separator: string, str: string) =>
|
|||||||
// @todo Test
|
// @todo Test
|
||||||
export const beforeFirstWord = beforeFirst(" ");
|
export const beforeFirstWord = beforeFirst(" ");
|
||||||
|
|
||||||
// /**
|
// @todo Test
|
||||||
// * @param {String} str
|
export const afterFirstWord: (str: string) => string = afterFirst(" ");
|
||||||
// * @return {String}
|
export const removeFirstWord: (str: string) => string = afterFirstWord;
|
||||||
// */
|
|
||||||
// export function afterFirstWord(str) {
|
|
||||||
// return afterFirst(' ', str);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// export const removeFirstWord = afterFirstWord;
|
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * @param {Number} maxChars
|
// * @param {Number} maxChars
|
||||||
|
|||||||
Reference in New Issue
Block a user