Module

x/lodash_es/mod.ts>trim

lodash for deno use
Latest
function trim
import { trim } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

Removes leading and trailing whitespace or specified characters from string.

Examples

_.trim(' abc '); // => 'abc'

.trim('--abc--', '-'); // => 'abc'

_.map([' foo ', ' bar '], _.trim); // => ['foo', 'bar']

Parameters

string
chars
guard