Skip to content

Commit b844676

Browse files
committed
Fix example
1 parent 7d1a487 commit b844676

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/utils/try-then

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/utils/try-then/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ function x() {
6060
}
6161

6262
function y( err ) {
63-
if ( err instanceof Error ) {
64-
return 'beeps';
63+
if ( err instanceof TypeError ) {
64+
return 'boops';
6565
}
66-
return 'boops';
66+
return 'beeps';
6767
}
6868

6969
var z = trythen( x, y );

0 commit comments

Comments
 (0)