UNPKG

@nodescript/stdlib

Version:
23 lines (22 loc) 496 B
export const module = { version: '1.0.3', moduleName: 'Math / Power', description: ` Computes value to the power of exponent. `, keywords: ['exponentiation'], params: { value: { schema: { type: 'number' }, }, exponent: { schema: { type: 'number' }, }, }, result: { schema: { type: 'number' }, } }; export const compute = params => { return Math.pow(params.value, params.exponent); };