6 lines · 223 B · TypeScript
RawDownload
export function same<T>(a: readonly T[] | undefined, b: readonly T[] | undefined) {  if (a === b) return true  if (!a || !b) return false  if (a.length !== b.length) return false  return a.every((x, i) => x === b[i])}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t