X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fhelpers%2Futils%2Fobject.ts;h=69b2b18c05d07a404387b422894e7787a4e81fb5;hb=HEAD;hp=1ca4a23acbc31c7556fd65110c8dfd91fd6822c1;hpb=dd24f1bb0a4b252e5342b251ba36853364da7b8e;p=github%2FChocobozzz%2FPeerTube.git 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) { }) } -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 }