123456789101112131415161718192021222324252627282930313233343536373839404142function array_count_values (array) { const tmp_arr = {}; let key = ''; const __countValue = function (value) { switch (typeof(value)) { case 'number': if (Math.floor(value) !== value) { return; } break; case 'string': if (value in this && this.hasOwnProperty(value)) { ++this[value]; } else { this[value] = 1; } break; } }..