import { default } from "https://deno.land/x/xnd@v3.0.2/mul.ts";
Multiplies a Number or BigInt by another.
Helpful with optional chaining (?.).
const partsCost = parts[sumBy](({ cost, quantity }) => cost?.[mul](quantity) ?? 0);
import { default } from "https://deno.land/x/xnd@v3.0.2/mul.ts";
Multiplies a Number or BigInt by another.
Helpful with optional chaining (?.).
const partsCost = parts[sumBy](({ cost, quantity }) => cost?.[mul](quantity) ?? 0);