(uri: string)
| 110 | } |
| 111 | |
| 112 | export function isDataURI(uri: string): boolean { |
| 113 | if (!types.isString(uri)) { |
| 114 | return false; |
| 115 | } |
| 116 | |
| 117 | const firstSegment = uri.trim().split(',')[0]; |
| 118 | |
| 119 | return firstSegment && firstSegment.indexOf('data:') === 0 && firstSegment.indexOf('base64') >= 0; |
| 120 | } |
| 121 | |
| 122 | export function mergeSort(arr, compareFunc) { |
| 123 | if (arr.length < 2) { |
no test coverage detected