Calcule o restante da divisão no TypeScript

var quotient = Math.floor(y/x);
var remainder = y % x;
Prickly Penguin