7 lines
161 B
JavaScript
7 lines
161 B
JavaScript
/**
|
|
* Ensure some object is a coerced to a string
|
|
**/
|
|
module.exports = function makeString(object) {
|
|
if (object == null) return '';
|
|
return '' + object;
|
|
};
|