HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/1527/cwd/tana/frontend/node_modules/locutus/php/array/array_unique.js.map
{"version":3,"sources":["../../../src/php/array/array_unique.js"],"names":["module","exports","array_unique","inputArr","key","tmpArr2","val","_arraySearch","needle","haystack","fkey","hasOwnProperty"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,QAAvB,EAAiC;AAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,MAAM,EAAV;AACA,MAAIC,UAAU,EAAd;AACA,MAAIC,MAAM,EAAV;;AAEA,MAAIC,eAAe,SAAfA,YAAe,CAAUC,MAAV,EAAkBC,QAAlB,EAA4B;AAC7C,QAAIC,OAAO,EAAX;AACA,SAAKA,IAAL,IAAaD,QAAb,EAAuB;AACrB,UAAIA,SAASE,cAAT,CAAwBD,IAAxB,CAAJ,EAAmC;AACjC,YAAKD,SAASC,IAAT,IAAiB,EAAlB,KAA2BF,SAAS,EAAxC,EAA6C;AAC3C,iBAAOE,IAAP;AACD;AACF;AACF;AACD,WAAO,KAAP;AACD,GAVD;;AAYA,OAAKN,GAAL,IAAYD,QAAZ,EAAsB;AACpB,QAAIA,SAASQ,cAAT,CAAwBP,GAAxB,CAAJ,EAAkC;AAChCE,YAAMH,SAASC,GAAT,CAAN;AACA,UAAIG,aAAaD,GAAb,EAAkBD,OAAlB,MAA+B,KAAnC,EAA0C;AACxCA,gBAAQD,GAAR,IAAeE,GAAf;AACD;AACF;AACF;;AAED,SAAOD,OAAP;AACD,CA3CD","file":"array_unique.js","sourcesContent":["module.exports = function array_unique (inputArr) { // eslint-disable-line camelcase\n  //  discuss at: http://locutus.io/php/array_unique/\n  // original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)\n  //    input by: duncan\n  //    input by: Brett Zamir (http://brett-zamir.me)\n  // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n  // bugfixed by: Nate\n  // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n  // bugfixed by: Brett Zamir (http://brett-zamir.me)\n  // improved by: Michael Grier\n  //      note 1: The second argument, sort_flags is not implemented;\n  //      note 1: also should be sorted (asort?) first according to docs\n  //   example 1: array_unique(['Kevin','Kevin','van','Zonneveld','Kevin'])\n  //   returns 1: {0: 'Kevin', 2: 'van', 3: 'Zonneveld'}\n  //   example 2: array_unique({'a': 'green', 0: 'red', 'b': 'green', 1: 'blue', 2: 'red'})\n  //   returns 2: {a: 'green', 0: 'red', 1: 'blue'}\n\n  var key = ''\n  var tmpArr2 = {}\n  var val = ''\n\n  var _arraySearch = function (needle, haystack) {\n    var fkey = ''\n    for (fkey in haystack) {\n      if (haystack.hasOwnProperty(fkey)) {\n        if ((haystack[fkey] + '') === (needle + '')) {\n          return fkey\n        }\n      }\n    }\n    return false\n  }\n\n  for (key in inputArr) {\n    if (inputArr.hasOwnProperty(key)) {\n      val = inputArr[key]\n      if (_arraySearch(val, tmpArr2) === false) {\n        tmpArr2[key] = val\n      }\n    }\n  }\n\n  return tmpArr2\n}\n"]}