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 8608b40 commit 26f5679Copy full SHA for 26f5679
19_pascal/solution/pascal-solution.js
@@ -1,5 +1,7 @@
1
const pascal = function (counter, currentLine = [1]) {
2
- if (counter === 1) return currentLine;
+ if (counter === 1) {
3
+ return currentLine;
4
+ }
5
6
const halfOfNextLine = currentLine.reduce(
7
(accumulator, currentElement, index, originalArray) => {
0 commit comments