Commit With Frontend and Backend in MERN
This commit is contained in:
10
backend/node_modules/mongoose/lib/helpers/getFunctionName.js
generated
vendored
Normal file
10
backend/node_modules/mongoose/lib/helpers/getFunctionName.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
const functionNameRE = /^function\s*([^\s(]+)/;
|
||||
|
||||
module.exports = function(fn) {
|
||||
return (
|
||||
fn.name ||
|
||||
(fn.toString().trim().match(functionNameRE) || [])[1]
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user