Server IP : 162.213.251.212 / Your IP : 18.116.88.16 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/www/easybuyer/node_modules/es5-ext/json/ |
Upload File : |
"use strict"; var compact = require("../array/#/compact") , isObject = require("../object/is-object") , toArray = require("../object/to-array") , isArray = Array.isArray , stringify = JSON.stringify; module.exports = function self(value /*, replacer, space*/) { var replacer = arguments[1], space = arguments[2]; try { return stringify(value, replacer, space); } catch (e) { if (!isObject(value)) return null; if (typeof value.toJSON === "function") return null; if (isArray(value)) { return ( "[" + compact.call(value.map(function (item) { return self(item, replacer, space); })) + "]" ); } return ( "{" + compact .call( toArray(value, function (item, key) { item = self(item, replacer, space); if (!item) return null; return stringify(key) + ":" + item; }) ) .join(",") + "}" ); } };