UNPKG

quizdown-extended

Version:

A fork from [bonartm/quizdown-js](https://github.com/bonartm/quizdown-js) with more features. > The Katex-extension is currently not supported

12 lines 348 B
/** * Checks if two arrays (of primitives) are equal in length and content. * Order matters. */ export function isEqualArray<T>(a1: T[], a2: T[]): boolean { if (a1 === a2) return true; if (a1.length !== a2.length) return false; for (let i = 0; i < a1.length; i++) { if (a1[i] !== a2[i]) return false; } return true; }