import { trim } from "https://deno.land/x/fae@v1.1.1/mod.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]]