moac-api
Version:
moac api for dapp
29 lines (20 loc) • 442 B
JavaScript
/**
* 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
};