Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : serialize.js
"use strict";

var toArray  = require("./to-array")
  , isDate   = require("../date/is-date")
  , isValue  = require("../object/is-value")
  , isRegExp = require("../reg-exp/is-reg-exp");

var isArray = Array.isArray
  , stringify = JSON.stringify
  , objHasOwnProperty = Object.prototype.hasOwnProperty;
var keyValueToString = function (value, key) {
	return stringify(key) + ":" + module.exports(value);
};

var sparseMap = function (arr) {
	var i, length = arr.length, result = new Array(length);
	for (i = 0; i < length; ++i) {
		if (!objHasOwnProperty.call(arr, i)) continue;
		result[i] = module.exports(arr[i]);
	}
	return result;
};

module.exports = function (obj) {
	if (!isValue(obj)) return String(obj);
	switch (typeof obj) {
		case "string":
			return stringify(obj);
		case "number":
		case "boolean":
		case "function":
			return String(obj);
		case "object":
			if (isArray(obj)) return "[" + sparseMap(obj) + "]";
			if (isRegExp(obj)) return String(obj);
			if (isDate(obj)) return "new Date(" + obj.valueOf() + ")";
			return "{" + toArray(obj, keyValueToString) + "}";
		default:
			throw new TypeError("Serialization of " + String(obj) + "is unsupported");
	}
};
© 2026 GrazzMean
Page non trouvée – APK Comptoir Hammami
Jannah Theme License is not validated, Go to the theme options page to validate the license, You need a single license for each domain name.

404 :(

Oups ! Cette page est introuvable.

Il semble que nous ne puissions pas trouver ce que vous cherchez. Peut-être qu'une recherche pourrait vous aider.

Bouton retour en haut de la page