Newer
Older
Nanping_sponge_JXKH / src / utils / v3.js
@liyingjing liyingjing on 25 Oct 324 bytes 海绵绩效考个
export function inheritAttr(source, target) {
  for (const key in source) {
    if (Object.hasOwnProperty.call(target, key)) {
      target[key] = source[key];
    }
  }
}

export function setEmpty(target) {
  for (const key in target) {
    if (Object.hasOwnProperty.call(target, key)) {
      target[key] = '';
    }
  }
}