Use Array Filter It is a small hack to filter out bucket of elements from the array pool. This method creates an array filled with all array elements that pass a test (provided as a function). According to requirement create a callback function for non-required elements. Using String replace function to replace all the values The String.replace() function allows you to replace strings using String and Regex.Basically this function replaces the string at its first occurrence. But to replace al...