function kvLookup(key, tablea, tableb, defval, datatype, delimiter) {
    let val = defval;
    let canConvert = false;
    if (!isUndefined(key)) {
      if (!isUndefined(tableb) && typeof tableb === "object" && key in tableb) {
        val = tableb[key];
        canConvert = true;
      } else if (
        !isUndefined(tablea) &&
        typeof tablea === "object" &&
        key in tablea
      ) {
        val = tablea[key];
        canConvert = true;
      } else {
        val = defval;
      }
      if (canConvert === true) {
        if (!isUndefined(datatype)) {
          switch (datatype) {
            case "int":
              val = parseInt(val, 10);
              break;
            case "float":
              val = parseFloat(val);
              break;
            default:
              break;
          }
        }
      }
    }
    return val;
  }
Generate Shadow

@param {Object} svg The Svg element Object
@param {Object} defs The defs element Object