Skip to content

Commit

Permalink
Merge pull request #7 from mattnadar/solved-arrays
Browse files Browse the repository at this point in the history
fixed error in bookEndList causing me to not be able to merge
  • Loading branch information
mattnadar authored Feb 21, 2024
2 parents c530081 + 4e53af3 commit 76b2b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arrays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function bookEndList(numbers: number[]): number[] {
return [];
} else {
// length greater than 0
let newArr: number[] = [];
const newArr: number[] = [];
newArr.push(numbers[0]);
newArr.push(numbers[numbers.length - 1]);
return newArr;
Expand Down

0 comments on commit 76b2b7a

Please sign in to comment.