packages/types-codec/src/utils/util.ts
// Copyright 2017-2024 @polkadot/types-codec authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { isFunction } from '@polkadot/util';
export function hasEq (o: unknown): o is { eq: (other: unknown) => boolean } {
return isFunction((o as { eq: unknown }).eq);
}