mirror of
https://github.com/diced/zipline.git
synced 2026-01-13 21:36:48 -08:00
fix: bytes separator
This commit is contained in:
@@ -4,5 +4,5 @@ export function bytes(value: string): number;
|
||||
export function bytes(value: number, options?: BytesOptions): string;
|
||||
export function bytes(value: string | number, options?: BytesOptions): string | number {
|
||||
if (typeof value === 'string') return bytesFn(value);
|
||||
return bytesFn(value, { ...options, unitSeparator: '' });
|
||||
return bytesFn(value, { ...options, unitSeparator: ' ' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user