UNPKG

moac-api

Version:
29 lines (20 loc) 442 B
/** * Utils * * @module utils */ /** * Returns true if object is string, otherwise false * * @method isString * @param {Object} * @return {Boolean} */ var isString = function (object) { console.log("This is my first module"); return typeof object === 'string' || (object && object.constructor && object.constructor.name === 'String'); }; module.exports = { isString: isString };