stringify.js 438 B

1234567891011
  1. require('../../modules/es.json.stringify');
  2. var path = require('../../internals/path');
  3. var apply = require('../../internals/function-apply');
  4. // eslint-disable-next-line es-x/no-json -- safe
  5. if (!path.JSON) path.JSON = { stringify: JSON.stringify };
  6. // eslint-disable-next-line no-unused-vars -- required for `.length`
  7. module.exports = function stringify(it, replacer, space) {
  8. return apply(path.JSON.stringify, null, arguments);
  9. };