forked from Fediversity/Fediversity
15 lines
224 B
JavaScript
15 lines
224 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const internals = {};
|
||
|
|
||
|
|
||
|
module.exports = function (...args) {
|
||
|
|
||
|
try {
|
||
|
return JSON.stringify(...args);
|
||
|
}
|
||
|
catch (err) {
|
||
|
return '[Cannot display object: ' + err.message + ']';
|
||
|
}
|
||
|
};
|