UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

12 lines (11 loc) • 354 B
export { isEqualStringList }; function isEqualStringList(a, b) { if (a === b) return true; if (Array.isArray(a) && Array.isArray(b)) { const sortedA = [...a].sort(); const sortedB = [...b].sort(); return sortedA.length === sortedB.length && sortedA.every((val, i) => val === sortedB[i]); } return false; }