https://leetcode-cn.com/problems/swap-nodes-in-pairs/
function swapPairs(head: ListNode | null): ListNode | null {if (!head || !head.next) return head;let one = head;let two = one.next;let three = two.next;two.next = one;one.next = swapPairs(three);return two;};
https://bigfrontend.dev/zh/problem/implement-your-own-Object-create
function myObjectCreate(proto) {
if (proto === null || typeof proto !== 'object') {
throw new Error('Object prototype may only be an Object or null');
}
function fn() {};
fn.prototype = proto;
return new fn()
}
