You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
436 B
12 lines
436 B
3 years ago
|
require('../../modules/es.json.stringify');
|
||
|
var path = require('../../internals/path');
|
||
|
var apply = require('../../internals/function-apply');
|
||
|
|
||
|
// eslint-disable-next-line es/no-json -- safe
|
||
|
if (!path.JSON) path.JSON = { stringify: JSON.stringify };
|
||
|
|
||
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
||
|
module.exports = function stringify(it, replacer, space) {
|
||
|
return apply(path.JSON.stringify, null, arguments);
|
||
|
};
|