virtpool/node_modules/@yaireo/tagify/src/polyfills/String.trim.js

2 lines
138 B
JavaScript
Raw Normal View History

// 1. String.prototype.trim polyfill
if (!"".trim) String.prototype.trim = function(){ return this.replace(/^[\s]+|[\s]+$/g, ''); };