| // @flow | |
| import {extend} from './util'; | |
| import window from './window'; | |
| /** | |
| * This is a private namespace for utility functions that will get automatically stripped | |
| * out in production builds. | |
| * | |
| * @private | |
| */ | |
| export const Debug = { | |
| extend(dest: Object, ...sources: Array<?Object>): Object { | |
| return extend(dest, ...sources); | |
| }, | |
| run(fn: () => any) { | |
| fn(); | |
| }, | |
| logToElement(message: string, overwrite: boolean = false, id: string = "log") { | |
| const el = window.document.getElementById(id); | |
| if (el) { | |
| if (overwrite) el.innerHTML = ''; | |
| el.innerHTML += `<br>${message}`; | |
| } | |
| } | |
| }; | |
Xet Storage Details
- Size:
- 665 Bytes
- Xet hash:
- e96f123ea3978d4caabe811f3bec39b685d66a32347bd799d31be27075074659
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.