UNPKG

@ou-imdt/utils

Version:

Utility library for interactive media development

9 lines 317 B
/** * Fetches a resource as a Blob object. * @param {string} url - The URL of the resource to fetch. * @returns {Promise<Blob>} A promise that resolves to a Blob object containing the resource data. */ export default async function fetchBlob(url) { const response = await fetch(url); return response.blob(); }