for($i = 0; $i < count($copyArr); $i++) {
if(array_key_exists($i + 1, $copyArr)) {
if($copyArr[$i + 1] - $copyArr[$i] === 1) {
$chunk[] = $copyArr[$i];
} elseif(empty($chunk)) {
continue;
} else {
$chunk[] = $copyArr[$i];
$chunkGroup[] = $chunk;
$chunk = [];
array_slice($copyArr, $i + 1);
$i = -1;
}
}
break;
}
dialog.showModal is not a function
var a = [[1, -9, -14], [5, -2, 16]];
var d = a[0][0] * a[1][1] - a[0][1] * a[1][0];
var x = (a[0][2] * a[1][1] - a[0][1] * a[1][2]) / d;
var y = (a[0][0] * a[1][2] - a[0][2] * a[1][0]) / d;
console.log(x, y);