| Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/core/src/lib/uri/ |
| Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/core/src/lib/uri/prepare-param-value.js |
import Type from '../type';
export default function prepareParamValue(value)
{
if (Type.isArray(value))
{
return value.map(item => String(item));
}
if (Type.isPlainObject(value))
{
return {...value};
}
return String(value);
}