UNPKG

329 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.str = void 0;
7
8var str = function str(obj) {
9 if (!obj) {
10 return '';
11 }
12
13 if (typeof obj === 'string') {
14 return obj;
15 }
16
17 throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)));
18};
19
20exports.str = str;
\No newline at end of file