[Update] Config Page: Add Device tab. add mic host list.(not selectable yet.)
This commit is contained in:
6
src-ui/utils/arrayToObject.js
Normal file
6
src-ui/utils/arrayToObject.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export const arrayToObject = (array) => {
|
||||
return array.reduce((obj, item) => {
|
||||
obj[item] = item;
|
||||
return obj;
|
||||
}, {});
|
||||
};
|
||||
Reference in New Issue
Block a user