silverwolf-x's picture
download
raw
323 Bytes
export function omit<T extends { [key: string]: unknown }, K extends keyof T>(
object: T,
keys: K[]
): Omit<T, K> {
const omitted: { [key: string]: unknown } = {}
Object.keys(object).forEach((key) => {
if (!keys.includes(key as K)) {
omitted[key] = object[key]
}
})
return omitted as Omit<T, K>
}

Xet Storage Details

Size:
323 Bytes
·
Xet hash:
dd45e2d54111d4914325a2fa5de2f1556067f1b6ea923cf0234043e8670c04a6

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