9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function hasDuplicates(arr: any[]): boolean;

Defined in: utils/index.d.ts:151

Checks if array has any duplicate elements.

Parameters

ParameterTypeDescription
arrany[]The array to be checked.

Returns

boolean

Previous
getWindow