Skip to content

Commit

Permalink
refactor: use arrow function style
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Feb 26, 2025
1 parent f01f6b4 commit abe4a95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/fast-usdc/test/pool-share-math.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ const scaleAmount = (frac: number, amount: Amount<'nat'>) => {
};

// ack: https://stackoverflow.com/a/2901298/7963
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
const numberWithCommas = x =>
x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');

const logAmt = amt => [
Number(amt.value),
Expand Down

0 comments on commit abe4a95

Please sign in to comment.