1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Improve advanced input filter

This commit is contained in:
Chocobozzz 2021-11-03 14:23:55 +01:00
parent d324756edb
commit dd6d2a7ce5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
14 changed files with 131 additions and 33 deletions

View file

@ -0,0 +1,13 @@
function findCommonElement <T> (array1: T[], array2: T[]) {
for (const a of array1) {
for (const b of array2) {
if (a === b) return a
}
}
return null
}
export {
findCommonElement
}