UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

6 lines (4 loc) 105 B
export function modulo(x, y){ if (arguments.length === 1) return _y => modulo(x, _y) return x % y }