I have some code like the followings.
MyRequests.cors_request("POST",
APP_CONFIG.APP_URL+"/users/selectAllUsers",
null,
function ok(users) {
$scope.usersNotFiltered = users;
console.log('users--->', users);
console.log('$scope.userPerSystem--->', $scope.userPerSystem);
// delete the items that is already exists in the userPerSystem
function filterUsers(element, index, array) {
console.log("$scope.usersNotFiltered :: " + users);
commonFindAndRemove($scope.usersNotFiltered, 'userId', element.userId);
console.log('a[' + index + '] = ' + element.userId);
}
$scope.userPerSystem.forEach(filterUsers);
$scope.users = $scope.usersNotFiltered;
},
And I run tihs code and watch the console. What is the difference between '[Object]' and '[object Object]' in chrome console?
users---> [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]
$scope.userPerSystem---> [Object]0: Objectlength: 1__proto__: Array[0] redca-ias.concat.js:5258
$scope.usersNotFiltered :: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]