Like some other languages (ex: python .strip, postgresql trim, ..) I think it would really useful that `String.prototype.trim` accept a string argument representing the characters to trim (or possible a regex).
And keep it's default behavior if no argument is passed
```js
'\t Test \n\n'.trim(' \t\n') == 'Test'
```
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

