source:
node_modules/ramda/es/internal/_functionName.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 207 bytes |
Line | |
---|---|
1 | export default function _functionName(f) { |
2 | // String(x => x) evaluates to "x => x", so the pattern may not match. |
3 | var match = String(f).match(/^function (\w*)/); |
4 | return match == null ? '' : match[1]; |
5 | } |
Note:
See TracBrowser
for help on using the repository browser.