$('.newverstka .tournaments-page .reg-block form .field').on('click', '.social .delete', function() {
$(this).parent().remove();
});
.clone(true)
const status = 40; // 0x28
status & 0x08
// 8 (0x08, true)
status & 0x10
// 0 (false)
status & 0x20
// 32 (0x20, true)
const arr1 = [
[ 432432, 23423, 123123, 54364346],
[ 756456, 2423423, 645654, 23423423],
[ 12354, 123123, 23423423, 1235765]
]
const arr3 = [ 12354, 5345, 53456346 ]
const arrResult = arr1
.flat(Infinity)
.filter(el => arr3.includes(el))
console.log(arrResult)
// Array [ 12354 ]
const arr1 = [
[ 432432, 23423, 123123, 54364346],
[ 756456, 2423423, 645654, 23423423],
[ 12354, 123123, 23423423, 1235765]
]
const arr3 = [ 12354, 5345, 53456346 ]
const arr1s = arr1.flat(Infinity)
arr1s.sort((a, b) => a - b)
const arr3s = arr3.slice()
arr3s.sort((a, b) => a - b)
const arrResult = []
for (let i = 0, let j = 0; i < arr1s.length, j < arr3s.length;) {
if (arr1s[i] === arr3s[j]) {
arrResult.push(arr1s[i])
i += 1
} else if (arr1s[i] < arr3s[j]) {
i += 1
} else {
j += 1
}
}
console.log(arrResult)
// Array [ 12354 ]
Access-Control-Expose-Headers: Content-Disposition
const defaultOrder = (a, b) => a < b ? -1 : a > b ? 1 : 0
const qSort = (arr, order = defaultOrder) => {
if (arr.length < 2) {
return arr;
}
const pivot = arr[Math.floor(arr.length * Math.random())]
const less = arr.filter(a => order(a, pivot) < 0)
const equal = arr.filter(a => order(a, pivot) === 0)
const greater = arr.filter(a => order(a, pivot) > 0)
return qSort(less, order).concat(equal).concat(qSort(greater, order))
}
const qSort = (arr) => {
if (arr.length < 2) {
return arr;
}
const fund = arr[Math.floor(arr.length / 2)]
let less = []
let equal = []
let greater = []
for (let i = 0; i < 0; i += 1) {
if (arr[i] < fund) {
less.push(arr[i])
}
if (arr[i] === fund) {
equal.push(arr[i])
}
if (arr[i] > fund) {
greater.push(arr[i])
}
}
return qSort(less) + equal + qSort(greater)
}