Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1670 | Rev 1709 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1670 Rev 1671
Línea 50... Línea 50...
50
 
50
 
51
  element.scrollTop = element.scrollHeight * 9
51
  element.scrollTop = element.scrollHeight * 9
Línea 52... Línea 52...
52
}
52
}
53
 
53
 
54
function arrayDiff({ ref = [], newValue = [] }) {
54
function arrayDiff({ ref = [], newValue = [] }) {
55
  const set = new Set(arr1.map((obj) => JSON.stringify(obj)))
55
  const set = new Set(ref.map((obj) => JSON.stringify(obj)))
56
  const difference = arr2.filter((obj) => !set.has(JSON.stringify(obj)))
56
  const difference = newValue.filter((obj) => !set.has(JSON.stringify(obj)))
Línea 57... Línea 57...
57
  return difference
57
  return difference
58
}
58
}