UNPKG

inversify

Version:

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

4 lines (3 loc) 116 B
export function getFunctionName(v) { return v.name ? v.name : v.toString().match(/^function\s*([^\s(]+)/)[1]; }