Sign in
chromium
/
devtools
/
devtools-frontend
/
d5a3755f19aa248cffbcf61f1628362aaa6c0377
/
.
/
node_modules
/
ramda
/
src
/
internal
/
_functionName.js
blob: 55ac1cd84d9d7df96dcd6dd4dc018c508e981497 [
file
] [
log
] [
blame
]
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
];
}
module
.
exports
=
_functionName
;