Skip to content

Commit 2decf23

Browse files
author
Shivam Singla
committed
rollback
1 parent e80e00e commit 2decf23

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

trim.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ const curried = curryN(2, _trim)
1818
*
1919
* Fae.trim(' xyz ', ''); // 'xyz
2020
* Fae.trim('[[Hello]]]', '[') // Hello]]]
21-
* Fae.trim('[[Hello]]]', ']]') // [[Hello]]
22-
*/
23-
export function trim(str: string, t: string): string;
24-
export function trim() {
25-
return curried(arguments)
26-
}
21+
* Fae.trim('[[Hello]]]', ']]') // [[Hello]] */
22+
export const trim: Curry2<string, string, string> = curryN(2, _trim)
2723

0 commit comments

Comments
 (0)