Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

223 B
Raw Blame
import { Cart, formatPrice, TAX_RATE } from "./shared.mjs";
export function checkout(prices) {
  const cart = new Cart();
  prices.forEach((price) => cart.add(price));
  return formatPrice(cart.total() * (1 + TAX_RATE));
}