{"version":3,"sources":["jsdelivr-header.js","/npm/array-duplicates@1.0.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAMA,SAAS,WAAW,GAClB,IAAI,EAAW,UAAU,OAAS,QAAsB,IAAjB,UAAU,GAAmB,UAAU,GAAK,SAAU,GAC3F,OAAO,CACT,EAEI,EAAS,GACT,EAAa,GAQjB,OAPA,EAAM,SAAQ,SAAU,GAClB,EAAO,SAAS,EAAS,IAC3B,EAAW,KAAK,GAEhB,EAAO,KAAK,EAAS,GAEzB,IACO,CACT,CAnBK,MAAM,UAAU,UACnB,QAAQ,6BAoBV,OAAO,QAAU","file":"/npm/array-duplicates@1.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/array-duplicates@1.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nif (!Array.prototype.includes) {\n  require('core-js/fn/array/includes');\n}\n\nfunction duplicates(array) {\n  var identity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (i) {\n    return i;\n  };\n\n  var unique = [];\n  var duplicates = [];\n  array.forEach(function (item) {\n    if (unique.includes(identity(item))) {\n      duplicates.push(item);\n    } else {\n      unique.push(identity(item));\n    }\n  });\n  return duplicates;\n}\n\nmodule.exports = duplicates;"]}