UNPKG

@nexys/math-ts

Version:

[![npm version](https://badge.fury.io/js/%40nexys%2Fmath-ts.svg)](https://www.npmjs.com/package/@nexys/math-ts) [![TavisCI](https://travis-ci.com/Nexysweb/tableau-wdc-react.svg?branch=master)](https://travis-ci.com/github/Nexysweb/math-ts) [![Deployment](

10 lines (9 loc) 263 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.factorial = (n, k = 1, r = 1) => { if (n >= k) { return exports.factorial(n - 1, k, n * r); } return r; }; exports.divWoRest = (a, b = 2) => (a - a % b) / b;