silverwolf-x's picture
download
raw
393 Bytes
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};
const convertPascalToKebabCase = (string) => {
return string
.replace(/([a-z0-9])([A-Z])/g, "$1-$2")
.replace(/([A-Z])([A-Z])(?=[a-z])/g, "$1-$2")
.toLowerCase();
};
export { asyncForEach, convertPascalToKebabCase };

Xet Storage Details

Size:
393 Bytes
·
Xet hash:
67912b596b046501b9ba5c0de2905d42b7a11d2bf334e97c748c00f93d638c68

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.