stringify.js 492 B

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