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