* Returns true, if given string contains a whitespace at given index. * @param {string} string * @param {number} [index=0] * @return {boolean}
(string, index = 0)
| 50 | * @return {boolean} |
| 51 | */ |
| 52 | static isWhitespace (string, index = 0) { |
| 53 | const character = string[index] |
| 54 | return character ? character.match(/\s/) !== null : false |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Removes Unicode whitespace characters. |
no test coverage detected