mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-13 07:35:47 +08:00
Fomrat the JS and TS codes with prettier.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user