/*
 * 데이터나 배열을 복제합니다.
 */
global.COPY = METHOD({

	run: (dataOrArray) => {
		//REQUIRED: dataOrArray

		let copy;

		if (CHECK_IS_DATA(dataOrArray) === true) {

			copy = {};

			EXTEND({
				origin: copy,
				extend: dataOrArray
			});
		}

		else if (CHECK_IS_ARRAY(dataOrArray) === true) {

			copy = [];

			EXTEND({
				origin: copy,
				extend: dataOrArray
			});
		}

		return copy;
	}
});
