Skip to main content
Module

x/fae/trim.ts>trim

A functional module for Deno inspired from Ramda.
Latest
variable trim
import { trim } from "https://deno.land/x/fae@v1.1.1/trim.ts";

Trims the string str from both end with t. Trims with white space if t is [''], with t otherwise.

 Fae.trim('   xyz  ', ''); // 'xyz
 Fae.trim('[[Hello]]]', '[') // Hello]]]
 Fae.trim('[[Hello]]]', ']]') // [[Hello]]

type

Trim