UNPKG

@nodescript/stdlib

Version:
22 lines (21 loc) 450 B
export const module = { version: '1.0.4', moduleName: 'Math / Min', description: ` Computes the minimum of specified numbers. `, params: { values: { schema: { type: 'array', items: { type: 'number' }, }, }, }, result: { schema: { type: 'number' }, } }; export const compute = params => { return Math.min(...params.values); };