2 * Copyright 2015-present Greg Hurrell. All rights reserved.
3 * Licensed under the terms of the MIT license.
11 * Turns an unpacked arbitrary-precision representation of a number, `digits`,
12 * (as produced by `getDigits`) back into a string representation in `base`.
14 export default function joinDigits(
15 digits: Array<number>,
18 return digits.reverse()
19 .map(number => number.toString(base))