ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / equalsBits

Function: equalsBits()

equalsBits(bits1, bits2): boolean

Defined in: packages/util/src/bytes.ts:589

Checks whether two arrays of bits are equal.

Two arrays are considered equal if they have the same length and each corresponding element is identical.

Parameters

bits1

number[]

The first bits array.

bits2

number[]

The second bits array.

Returns

boolean

True if the arrays are equal; otherwise, false.