Skip to content

Commit 26f5679

Browse files
nik-revmao-sz
andauthored
refactor: make code more readable
Co-authored-by: MaoShizhong <122839503+MaoShizhong@users.noreply.github.com>
1 parent 8608b40 commit 26f5679

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

19_pascal/solution/pascal-solution.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const pascal = function (counter, currentLine = [1]) {
2-
if (counter === 1) return currentLine;
2+
if (counter === 1) {
3+
return currentLine;
4+
}
35

46
const halfOfNextLine = currentLine.reduce(
57
(accumulator, currentElement, index, originalArray) => {

0 commit comments

Comments
 (0)