We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c2403 commit ff04c7bCopy full SHA for ff04c7b
switchCase.js
@@ -61,13 +61,13 @@ const curryArgs3 = require('./_internal/curryArgs3')
61
* Any function can be replaced with a nonfunction (object or primitive) value to be used directly in the operation.
62
*
63
* ```javascript [playground]
64
- * switchCase([
+ * switchCase(false, [
65
* async function asyncIdentity(value) {
66
* return value
67
* },
68
* 'something',
69
* 'default',
70
- * ])(false).then(console.log) // default
+ * ]).then(console.log) // default
71
* ```
72
73
* If every element in the conditional array is a nonfunction value, `switchCase` executes eagerly.
0 commit comments