1 var realNames = require('./realNames');
4 * Gets the name of `func`.
7 * @param {Function} func The function to query.
8 * @returns {string} Returns the function name.
10 function getFuncName(func) {
11 var result = (func.name + ''),
12 array = realNames[result],
13 length = array ? array.length : 0;
16 var data = array[length],
17 otherFunc = data.func;
18 if (otherFunc == null || otherFunc == func) {
25 module.exports = getFuncName;