@nodescript/stdlib
Version:
Standard Node Definitions
23 lines (22 loc) • 462 B
JavaScript
export const module = {
version: '1.0.4',
moduleName: 'Math / Modulo',
description: `
Computes the reminder of division a by b.
`,
keywords: ['remainder'],
params: {
a: {
schema: { type: 'number' },
},
b: {
schema: { type: 'number' },
},
},
result: {
schema: { type: 'number' },
}
};
export const compute = params => {
return params.a % params.b;
};