UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

12 lines (11 loc) 230 B
var toJSONDescriptor = { enumerable: false, value: function emptyInput() { return {}; }, }; module.exports = function (input) { if (!input.toJSON) { Object.defineProperty(input, "toJSON", toJSONDescriptor); } };