1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Prefer using Object.values

This commit is contained in:
Chocobozzz 2022-08-17 15:36:03 +02:00
parent bbd5aa7ead
commit 690bb8f9f3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
17 changed files with 48 additions and 48 deletions

View file

@ -18,7 +18,7 @@ function sortBy (obj: any[], key1: string, key2?: string) {
})
}
function intoArray (value: any) {
function splitIntoArray (value: any) {
if (!value) return undefined
if (Array.isArray(value)) return value
@ -42,6 +42,6 @@ export {
sortBy,
immutableAssign,
removeElementFromArray,
intoArray,
splitIntoArray,
toBoolean
}