Fomrat the JS and TS codes with prettier.

This commit is contained in:
krahets
2023-04-17 21:58:11 +08:00
parent 9a98ff8a5e
commit c4ea4e39f3
68 changed files with 634 additions and 510 deletions

View File

@@ -11,8 +11,8 @@ class ListNode {
val;
next;
constructor(val, next) {
this.val = (val === undefined ? 0 : val);
this.next = (next === undefined ? null : next);
this.val = val === undefined ? 0 : val;
this.next = next === undefined ? null : next;
}
}
@@ -47,5 +47,5 @@ function getListNode(head, val) {
module.exports = {
ListNode,
arrToLinkedList,
getListNode
getListNode,
};