e6bab06510
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { isNumber } from 'lodash';
|
|
|
|
import { ByteBufferClass } from '../window.d';
|
|
|
|
export function isByteBufferEmpty(data?: ByteBufferClass): boolean {
|
|
return !data || !isNumber(data.limit) || data.limit === 0;
|
|
}
|