mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
25
react-app/node_modules/lodash/internal/getFuncName.js
generated
vendored
Normal file
25
react-app/node_modules/lodash/internal/getFuncName.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var realNames = require('./realNames');
|
||||
|
||||
/**
|
||||
* Gets the name of `func`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to query.
|
||||
* @returns {string} Returns the function name.
|
||||
*/
|
||||
function getFuncName(func) {
|
||||
var result = (func.name + ''),
|
||||
array = realNames[result],
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (length--) {
|
||||
var data = array[length],
|
||||
otherFunc = data.func;
|
||||
if (otherFunc == null || otherFunc == func) {
|
||||
return data.name;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = getFuncName;
|
Reference in New Issue
Block a user