Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
'use strict'; module.exports = function mapToDictionary(fn) { const collection = {}; this.items.forEach((item, k) => { const [key, value] = fn(item, k); if (collection[key] === undefined) { collection[key] = [value]; } else { collection[key].push(value); } }); return new this.constructor(collection); };