* Returns number of whitespace leading characters. * * @param text
(text: string)
| 43 | * @param text |
| 44 | */ |
| 45 | function numOfWhiteSpaceLeadingChars(text: string): number { |
| 46 | return text.match(/^\s*/)![0].length; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Jasmine AsymmetricMatcher which can be used to assert `.debug` properties. |