import { factorial } from 'mz-math'; const res1 = factorial(5); // 1*2*3*4*5 = 120 const res2 = factorial(5, 3); // 3*4*5 = 60