PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` 'use strict'; module.exports = function mode(key) { var values = []; var highestCount = 1; if (!this.items.length) { return null; } this.items.forEach(function (item) { var tempValues = values.filter(function (value) { if (key !== undefined) { return value.key === item[key]; } return value.key === item; }); if (!tempValues.length) { if (key !== undefined) { values.push({ key: item[key], count: 1 }); } else { values.push({ key: item, count: 1 }); } } else { tempValues[0].count += 1; var count = tempValues[0].count; if (count > highestCount) { highestCount = count; } } }); return values.filter(function (value) { return value.count === highestCount; }).map(function (value) { return value.key; }); };