GoScrobble/web/node_modules/@hapi/hoek/lib/stringify.js

15 lines
233 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
'use strict';
const internals = {};
module.exports = function (...args) {
try {
return JSON.stringify.apply(null, args);
}
catch (err) {
return '[Cannot display object: ' + err.message + ']';
}
};