package
An trim polyfill for legacy browsers.
npm install @ungap/trimGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
2.6 kB
Includes dependencies.
A String.prototype.trim polyfill for legacy browsers.
import trim from '@ungap/trim'const trim = require('@ungap/trim')Compatible down to IE9, works well with ES5 shim upfront in IE8 (and maybe lower too).