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:
parent
bbd5aa7ead
commit
690bb8f9f3
17 changed files with 48 additions and 48 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue