Skip to content

Commit

Permalink
Remove incorrect spaces before parens
Browse files Browse the repository at this point in the history
Typo and copy-paste meet
  • Loading branch information
TomasHubelbauer committed May 22, 2023
1 parent 1fccb26 commit f4a5a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export function sample<T> (v: T[] | string, count: number | undefined = undefine
if (isNil(v)) return []
if (!isArray(v)) {
v = stringify(v)
return [...v].sort(() => Math.random() ).slice(0, count).join('')
return [...v].sort(() => Math.random()).slice(0, count).join('')
}

return [...v].sort(() => Math.random() ).slice(0, count)
return [...v].sort(() => Math.random()).slice(0, count)
}

0 comments on commit f4a5a3a

Please sign in to comment.