source: node_modules/ramda/es/internal/_functionName.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 207 bytes
RevLine 
[d24f17c]1export 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.