@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
19 lines (18 loc) • 383 B
JavaScript
import "../../../chunk-G2ADBYYC.js";
import isObject from "./isObject";
import isString from "./isString";
const toStringJSON = (str) => {
if (isObject(str)) {
return str;
} else if (isString(str)) {
try {
return JSON.parse(str);
} catch (error) {
}
}
return {};
};
var toStringJSON_default = toStringJSON;
export {
toStringJSON_default as default
};