{Skin/Usermenu.htmlload}
Beverly Hills Real Estate

Main Content

Moving From To Phoenix


   (Go Back) Choose State To Move From ") {
return;
}

if (typeof value === "boolean") {
return value;
}

if (typeof value === "string") {
return value.toLowerCase() === "true";
}

return false;
}

/**
* @param {any} value
* @returns {number}
*/
static toNumber(value) {
if (typeof value === "undefined") {
return;
}

if (typeof value === "number") {
return value;
}

if (typeof value === "string") {
return Number(value);
}

return 0;
}

/**
* @param {any} value
* @returns {string}
*/
static toString(value) {
if (typeof value === "undefined") {
return;
}

if (typeof value === "string") {
return value;
}

if (typeof value === "number" || typeof value === "boolean") {
return String(value);
}

if (typeof value === "object") {
return JSON.stringify(value);
}

return "";
}

/**
* @param {any} value
* @returns {any}
*/
static toObject(value) {
if (typeof value === "undefined") {
return;
}

if (typeof value === "object") {
return value;
}

if (typeof value === "string") {
try {
return JSON.parse(value);
} catch (e) {
return;
}
}

return;
}

/**
* @param {any} value
* @returns {any}
*/
static toDate(value) {
if (typeof value === "undefined") {
return;
}

if (typeof value === "object") {
return value;
}

if (typeof value === "string") {
return new Date(value);
}

return;
}
}

module.exports = Type;

Let's  work together
Thank you for your interest in getting in touch with me. Please select the option that suits you the best and fill out the form: