var app = angular.module("app", []);
app.controller("MyCtrl1", MyCtrl1);
function MyCtrl1($scope) {
$scope.block = new Array();
$scope.block[0] = new Array();
$scope.block[0].push("111");
$scope.block[0].push("112");
$scope.block[0].push("113");
$scope.block[0].push("114");
$scope.block[0].push("115");
$scope.block[2].length = 0;
$scope.block[3] = new Array();
$scope.block[3].push("111");
$scope.block[3].push("112");
$scope.block[3].push("113");
$scope.block[3].push("114");
$scope.block[3].push("115");
$scope.block.filter(Boolean);
console.log($scope.block.length.toString());
}
[["111","112","113","114","115"],["111","112","113","114","115"],[],["111","112","113","114","115"]]
how to remove the empty array Thanks help~