mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 10:07:46 +00:00
10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
/**
|
|
* Returns the field value in a platform generic way.
|
|
*
|
|
* @param {Object | string} fieldParameter - The parameter passed through the change event function.
|
|
* @returns {string}
|
|
*/
|
|
export function getFieldValue(fieldParameter: { target: { value: string; }; } | string) {
|
|
return typeof fieldParameter === 'string' ? fieldParameter : fieldParameter?.target?.value;
|
|
}
|