Buckets:

imerfanrajabee's picture
download
raw
450 Bytes
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegExp = escapeRegExp;
exports.castArray = castArray;
/**
* Escapes a string for use in a regular expression.
*/
function escapeRegExp(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
/**
* Casts a value to an array if it's not one.
*/
function castArray(value) {
return (Array.isArray(value) ? value : value != null ? [value] : []);
}

Xet Storage Details

Size:
450 Bytes
·
Xet hash:
5fa051cbe28e537a429c67676109ee4cc37792321251e9b6556305f6bd75b97d

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