21 lines
		
	
	
		
			858 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			858 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| "use strict";
 | |
| 
 | |
| Object.defineProperty(exports, "__esModule", {
 | |
|   value: true
 | |
| });
 | |
| exports.default = toString;
 | |
| function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
 | |
| function toString(input) {
 | |
|   if (_typeof(input) === 'object' && input !== null) {
 | |
|     if (typeof input.toString === 'function') {
 | |
|       input = input.toString();
 | |
|     } else {
 | |
|       input = '[object Object]';
 | |
|     }
 | |
|   } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {
 | |
|     input = '';
 | |
|   }
 | |
|   return String(input);
 | |
| }
 | |
| module.exports = exports.default;
 | |
| module.exports.default = exports.default; |