init
This commit is contained in:
5
node_modules/ramda/es/internal/_functionName.js
generated
vendored
Normal file
5
node_modules/ramda/es/internal/_functionName.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function _functionName(f) {
|
||||
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
||||
var match = String(f).match(/^function (\w*)/);
|
||||
return match == null ? '' : match[1];
|
||||
}
|
Reference in New Issue
Block a user