code: function mode(arr) {
                return arr.sort((a, b) =>
                  arr.filter((v) => v === a).length
                      - arr.filter((v) => v === b).length
                ).pop();
              }
docs: Return the most repeated element on the array.
  @param {Array} arr
  @return {number} mode