5 lines
144 B
JavaScript
5 lines
144 B
JavaScript
import rtrim from './rtrim';
|
|
import ltrim from './ltrim';
|
|
export default function trim(str, chars) {
|
|
return rtrim(ltrim(str, chars), chars);
|
|
} |