mirror of
https://github.com/619dev/PaperPhone.git
synced 2026-05-08 23:11:24 +08:00
7 lines
187 B
JavaScript
7 lines
187 B
JavaScript
export function isEmptyData(data) {
|
|
if (typeof data === "string") {
|
|
return data.length === 0;
|
|
}
|
|
return data.byteLength === 0;
|
|
}
|
|
//# sourceMappingURL=isEmptyData.js.map
|