You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
144 B
5 lines
144 B
2 years ago
|
import rtrim from './rtrim';
|
||
|
import ltrim from './ltrim';
|
||
|
export default function trim(str, chars) {
|
||
|
return rtrim(ltrim(str, chars), chars);
|
||
|
}
|