{"code":"const _count = names => names.reduce((acc, name) => Object.assign(acc, { [name]: (acc[name] || 0) + 1 }), {});\r\nconst _duplicates = dict => Object.keys(dict).filter(a => dict[a] > 1);\r\n/**\r\n * Returns an array of values that are duplicate in the input array.\r\n */\r\nconst duplicates = (arr) => _duplicates(_count(arr));\r\nexport default duplicates;\r\n//# sourceMappingURL=index.js.map","map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/arrays/duplicates/index.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,MAAM,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,EAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AAChH,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5D,eAAe,UAAU,CAAC\"}","dts":{"name":"/Users/thibault/Development/pure-fun/arrays/duplicates/index.d.ts","writeByteOrderMark":false,"text":"/**\r\n * Returns an array of values that are duplicate in the input array.\r\n */\r\ndeclare const duplicates: (arr: any[]) => string[];\r\nexport default duplicates;\r\n"}}
