You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
368 B

export function toArray(candidate) {
if (candidate === undefined || candidate === false) return [];
return Array.isArray(candidate) ? candidate : [candidate];
}
export function getFieldId(namePath, formName) {
if (!namePath.length) return undefined;
var mergedId = namePath.join('_');
return formName ? "".concat(formName, "_").concat(mergedId) : mergedId;
}