面试题答案
一键面试function multiplyBigInts(a: bigint, b: bigint): bigint {
if (typeof a!== 'bigint' || typeof b!== 'bigint') {
throw new Error('Both parameters must be of type bigint');
}
return a * b;
}
function multiplyBigInts(a: bigint, b: bigint): bigint {
if (typeof a!== 'bigint' || typeof b!== 'bigint') {
throw new Error('Both parameters must be of type bigint');
}
return a * b;
}