UNPKG

pimatic

Version:

A home automation server and framework for the Raspberry PI running on node.js

4 lines (3 loc) 68 B
export default function mod(n, x) { return ((n % x) + x) % x; }