import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
export function toArray(candidate) {
  if (candidate === undefined || candidate === false) return [];
  return Array.isArray(candidate) ? candidate : [candidate];
}
export function getFieldId(namePath, formName) {
  var _context;

  if (!namePath.length) return undefined;
  var mergedId = namePath.join('_');
  return formName ? _concatInstanceProperty(_context = "".concat(formName, "_")).call(_context, mergedId) : mergedId;
}