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.
18 lines
496 B
18 lines
496 B
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.toArray = toArray;
|
|
exports.getFieldId = getFieldId;
|
|
|
|
function toArray(candidate) {
|
|
if (candidate === undefined || candidate === false) return [];
|
|
return Array.isArray(candidate) ? candidate : [candidate];
|
|
}
|
|
|
|
function getFieldId(namePath, formName) {
|
|
if (!namePath.length) return undefined;
|
|
var mergedId = namePath.join('_');
|
|
return formName ? "".concat(formName, "_").concat(mergedId) : mergedId;
|
|
} |