@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
12 lines • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.value = void 0;
const ObjValue_1 = require("./ObjValue");
const Value_1 = require("./Value");
const value = (type, data) => {
if (type.kind() === 'obj')
return new ObjValue_1.ObjValue(type, data);
return new Value_1.Value(data, type);
};
exports.value = value;
//# sourceMappingURL=util.js.map