text: const advancedDetermine = require("@hugoalh/advanced-determine");
  /**
   * @function removeDuplicate
   * @alias uniq
   * @alias unique
   * @description Remove all of the duplicated elements in the array.
   * @param {any[]} item Array that need to remove duplicated elements.
   * @returns {any[]} An array with unique elements.
   */
  function removeDuplicate(item) {
  	if (advancedDetermine.isArray(item) === false) {
  		throw new TypeError(`Argument \`item\` must be type of array!`);
  	};
  	let result = [];
  	for (let itemElement of item) {
  		let duplicated = false;
  		for (let resultElement of result) {
  			if (advancedDetermine.areEqual(itemElement, resultElement) === true) {
  				duplicated = true;
  				break;
  			};
  		};
  		if (duplicated === false) {
  			result.push(itemElement);
  		};
  	};
  	return result;
  };
  module.exports = removeDuplicate;
  