(str)
| 267 | * an empty string. |
| 268 | */ |
| 269 | export function trim(str) { |
| 270 | if (str && typeof(str.replace) == 'function') { |
| 271 | return str.replace(/^\s+|\s+$/g, ''); |
| 272 | } |
| 273 | return ""; |
| 274 | } |
| 275 | |
| 276 | export function maxDepth(ary) { |
| 277 | // given a sorted array of 2-tuples of numbers, count how many "deep" the items are. |
no outgoing calls
no test coverage detected