UNPKG

@logdna/logger

Version:

LogDNA's Node.js Logging Module.

8 lines (6 loc) 197 B
'use strict' module.exports = function checkStringParam(param, name) { if (!param || typeof param !== 'string') { throw new TypeError(`${name} is undefined or not passed as a String`) } }