(str)
| 134 | // @function trim(str: String): String |
| 135 | // Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) |
| 136 | function trim(str) { |
| 137 | return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); |
| 138 | } |
| 139 | |
| 140 | // @function splitWords(str: String): String[] |
| 141 | // Trims and splits the string on whitespace and returns the array of parts. |
no test coverage detected