UNPKG

inversify

Version:

A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.

6 lines (5 loc) 166 B
"use strict"; function getFunctionName(v) { return v.name ? v.name : v.toString().match(/^function\s*([^\s(]+)/)[1]; } exports.getFunctionName = getFunctionName;