aboutsummaryrefslogtreecommitdiff
path: root/node_modules/fn-name/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/fn-name/index.js')
-rw-r--r--node_modules/fn-name/index.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/node_modules/fn-name/index.js b/node_modules/fn-name/index.js
deleted file mode 100644
index c8933518a..000000000
--- a/node_modules/fn-name/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-module.exports = function (fn) {
- if (typeof fn !== 'function') {
- throw new TypeError('Expected a function');
- }
-
- return fn.displayName || fn.name || (/function ([^\(]+)?\(/.exec(fn.toString()) || [])[1] || null;
-};