2 * Copyright 2015-present Greg Hurrell. All rights reserved.
3 * Licensed under the terms of the MIT license.
10 import addDigits from './addDigits';
13 * Multiplication is repeated addition.
15 export default function multiplyDigits(
16 multiplicand: Array<number>,
24 if (count && count * 2 < multiplier) {
27 result = addDigits(result, result, base);
29 result = addDigits(result, multiplicand, base);