aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/helpers/utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 15:36:03 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 15:36:03 +0200
commit690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3 (patch)
treeb16b8536acd2098aba8c1d6fe13a336dd6aa01a9 /client/src/app/helpers/utils
parentbbd5aa7ead5f1554a0872963f957effc26d8c630 (diff)
downloadPeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.tar.gz
PeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.tar.zst
PeerTube-690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3.zip
Prefer using Object.values
Diffstat (limited to 'client/src/app/helpers/utils')
-rw-r--r--client/src/app/helpers/utils/object.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/helpers/utils/object.ts b/client/src/app/helpers/utils/object.ts
index 1ca4a23ac..69b2b18c0 100644
--- a/client/src/app/helpers/utils/object.ts
+++ b/client/src/app/helpers/utils/object.ts
@@ -18,7 +18,7 @@ function sortBy (obj: any[], key1: string, key2?: string) {
18 }) 18 })
19} 19}
20 20
21function intoArray (value: any) { 21function splitIntoArray (value: any) {
22 if (!value) return undefined 22 if (!value) return undefined
23 if (Array.isArray(value)) return value 23 if (Array.isArray(value)) return value
24 24
@@ -42,6 +42,6 @@ export {
42 sortBy, 42 sortBy,
43 immutableAssign, 43 immutableAssign,
44 removeElementFromArray, 44 removeElementFromArray,
45 intoArray, 45 splitIntoArray,
46 toBoolean 46 toBoolean
47} 47}