Skip to content

Commit

Permalink
feat(src): add div function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 1, 2021
1 parent 33fdbf5 commit 636c353
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ export function diff(a: number, b: number) {
export function mult(a: number, b: number) {
return a * b;
}

/**
* Returns the quotient of `dividend` and `divisor`
*/
export function div({ dividend, divisor }: { dividend: number; divisor: number }) {
return dividend / divisor;
}

0 comments on commit 636c353

Please sign in to comment.