* More correct typeof string handling array * which normally returns typeof 'object'
(obj)
| 30 | * which normally returns typeof 'object' |
| 31 | */ |
| 32 | function typeStr (obj) { |
| 33 | return isArray(obj) ? 'array' : typeof obj; |
| 34 | } |
| 35 | |
| 36 | function escapeRegExp (string) { |
| 37 | return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&'); |