function cloneObject (obj) {
	if (obj === null || typeof obj !== "object") {
		return obj;
	}

	if (obj.constructor.name === "RegExp") {
		return new RegExp(obj);
	}

	const temp = obj.constructor(); // give temp the original obj's constructor
	for (const key in obj) {
		temp[key] = cloneObject(obj[key]);

		if (key === "lockStrings") {
			Log.log(key);
		}
	}

	return temp;
}
Define the clone method for later use. Helper Method.
@param {object} obj Object to be cloned
@returns {object} the cloned object