Consume all characters in a given base.
consumeBase(8, 0, "0123456789") // => [8, 342391]consumeBase(8, 1, "999") // => [1, 0]
the new offset and the number it consumed converted to base 10
the base to use i.e. one of 2, 3, 4, 5 ,...
where in the string to start consuming
the source string
Consume all characters in a given base.
Example
Returns
the new offset and the number it consumed converted to base 10