File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/node_modules/@stdlib/regexp/function-name Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function beep() {
2020 return ' boop' ;
2121}
2222
23- var name = RE_FUNCTION_NAME .exec ( beep .toString () )[ 1 ];
23+ var str = RE_FUNCTION_NAME .exec ( beep .toString () )[ 1 ];
2424// returns 'beep'
2525```
2626
@@ -33,6 +33,8 @@ var name = RE_FUNCTION_NAME.exec( beep.toString() )[ 1 ];
3333
3434## Examples
3535
36+ <!-- eslint-disable func-names, no-restricted-syntax, no-empty-function -->
37+
3638``` javascript
3739var RE_FUNCTION_NAME = require ( ' @stdlib/utils/regexp/function-name' );
3840
@@ -49,7 +51,7 @@ f = fname( Int8Array );
4951f = fname ( Object .prototype .toString );
5052// returns 'toString'
5153
52- f = fname ( function () {} );
54+ f = fname ( function () {} );
5355// returns ''
5456```
5557
You can’t perform that action at this time.
0 commit comments