- function safeIntegerMultiply(x, y) { if (!Number.isSafeInteger(x * y)) { throw new Error('Product is an unsafe integer'); } return x * y; }