UNPKG

@ribajs/core

Version:

Core module of Riba.js

11 lines (10 loc) 284 B
/** * Divides an value by a number and returns the remainder. * @see https://help.shopify.com/themes/liquid/filters/math-filters#modulo */ export const moduloFormatter = { name: "modulo", read(a: string | number, b: string | number) { return Number(a) % Number(b); }, };