Buckets:

imerfanrajabee's picture
download
raw
297 Bytes
const { isArray } = Array;
/**
* Used in operators and functions that accept either a list of arguments, or an array of arguments
* as a single argument.
*/
export function argsOrArgArray<T>(args: (T | T[])[]): T[] {
return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]);
}

Xet Storage Details

Size:
297 Bytes
·
Xet hash:
7ebbdddd292cc5c2ee14300264968c18819cdfcd7b81770eccea109d0d240298

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