summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/funchand/call_user_func.js.map
blob: c1876cb7e2d415117e472a5de26d51515b53e689 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/funchand/call_user_func.js"],"names":["module","exports","call_user_func","cb","parameters","callUserFuncArray","require","Array","prototype","slice","call","arguments"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,cAAT,CAAyBC,EAAzB,EAA6BC,UAA7B,EAAyC;AAAE;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,oBAAoBC,QAAQ,kCAAR,CAAxB;AACAF,eAAaG,MAAMC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,EAAsC,CAAtC,CAAb;AACA,SAAON,kBAAkBF,EAAlB,EAAsBC,UAAtB,CAAP;AACD,CAhBD","file":"call_user_func.js","sourcesContent":["module.exports = function call_user_func (cb, parameters) { // eslint-disable-line camelcase\n  //  discuss at: http://locutus.io/php/call_user_func/\n  // original by: Brett Zamir (http://brett-zamir.me)\n  // improved by: Diplom@t (http://difane.com/)\n  // improved by: Brett Zamir (http://brett-zamir.me)\n  //      note 1: Depends on call_user_func_array which in turn depends on the `cb` that is passed,\n  //      note 1: this function can use `eval`.\n  //      note 1: The `eval` input is however checked to only allow valid function names,\n  //      note 1: So it should not be unsafer than uses without eval (seeing as you can)\n  //      note 1: already pass any function to be executed here.\n  //   example 1: call_user_func('isNaN', 'a')\n  //   returns 1: true\n\n  var callUserFuncArray = require('../funchand/call_user_func_array')\n  parameters = Array.prototype.slice.call(arguments, 1)\n  return callUserFuncArray(cb, parameters)\n}\n"]}