Arguments

key
string
required

The key to search in.

bit
0 | 1
required

The key to store the result of the operation in.

start
number

The index to start searching at.

end
number

The index to stop searching at.

Response

The index of the first occurrence of the bit in the string.