summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/funchand/function_exists.js.map
blob: 097d1862f79123f0056b60cdd6a1ae4a430967a5 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/funchand/function_exists.js"],"names":["module","exports","function_exists","funcName","$global","window","global"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,CAA0BC,QAA1B,EAAoC;AAAE;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAW,OAAOC,MAAP,KAAkB,WAAlB,GAAgCA,MAAhC,GAAyCC,MAAxD;;AAEA,MAAI,OAAOH,QAAP,KAAoB,QAAxB,EAAkC;AAChCA,eAAWC,QAAQD,QAAR,CAAX;AACD;;AAED,SAAO,OAAOA,QAAP,KAAoB,UAA3B;AACD,CAjBD","file":"function_exists.js","sourcesContent":["module.exports = function function_exists (funcName) { // eslint-disable-line camelcase\n  //  discuss at: http://locutus.io/php/function_exists/\n  // original by: Kevin van Zonneveld (http://kvz.io)\n  // improved by: Steve Clay\n  // improved by: Legaev Andrey\n  // improved by: Brett Zamir (http://brett-zamir.me)\n  //   example 1: function_exists('isFinite')\n  //   returns 1: true\n  //        test: skip-1\n\n  var $global = (typeof window !== 'undefined' ? window : global)\n\n  if (typeof funcName === 'string') {\n    funcName = $global[funcName]\n  }\n\n  return typeof funcName === 'function'\n}\n"]}