summaryrefslogtreecommitdiffstats
path: root/node_modules/mongoose/lib/helpers/getFunctionName.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/mongoose/lib/helpers/getFunctionName.js')
-rw-r--r--node_modules/mongoose/lib/helpers/getFunctionName.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/node_modules/mongoose/lib/helpers/getFunctionName.js b/node_modules/mongoose/lib/helpers/getFunctionName.js
deleted file mode 100644
index 87a2c69..0000000
--- a/node_modules/mongoose/lib/helpers/getFunctionName.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function(fn) {
- if (fn.name) {
- return fn.name;
- }
- return (fn.toString().trim().match(/^function\s*([^\s(]+)/) || [])[1];
-};