Skip to content

Commit 8eff578

Browse files
committed
doc: add info
1 parent a937345 commit 8eff578

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/leet-code/0020-valid-parentheses/valid-parenth-stack.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** Holds the open-close character relationship between parentheses. */
12
const parens = new Map([
23
['(', ')'],
34
['[', ']'],
@@ -11,10 +12,7 @@ const parens = new Map([
1112
* @returns {string} Unboxed string.
1213
*/
1314
const unboxOption = (str) => {
14-
if (str === undefined) {
15-
throw new Error('string is undefined')
16-
}
17-
15+
if (str === undefined) throw new Error('string is undefined')
1816
return str
1917
}
2018

0 commit comments

Comments
 (0)