* More correct typeof string handling array * which normally returns typeof 'object'
(obj)
| 21 | * which normally returns typeof 'object' |
| 22 | */ |
| 23 | function typeStr (obj) { |
| 24 | return isArray(obj) ? 'array' : typeof obj; |
| 25 | } |
| 26 | |
| 27 | function escapeRegExp (string) { |
| 28 | return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&'); |
no test coverage detected