UNPKG

lmd

Version:

LMD: Lazy Module Declaration

7 lines (6 loc) 202 B
module.exports = function (a, b) { if (isNaN(a) || typeof a !== 'number' || isNaN(b) || typeof b !== 'number') { throw new TypeError('a and b should be numbers'); } return a + b; };