I am using ng-repeat in angular js, I am having an add button where I need to just add an empty object so can i initialize variable as undefined instead of empty.
ex my HTML
<tr ng-repeat="test in tests">
 <td>.....</td>
</tr>
Controller
function getStestItem() {
    var testItem = {
        ItemID: null,
        Test: "",
        Description: ""
    }
    $scope.tests.push(skillItem);
}
$scope.add = function(){getStestItem();}
so instead of giving empty values can I give as
function getStestItem() {
    var testItem = {
        ItemID: null,
        Test: undefined,
        Description: undefined
    }
    $scope.tests.push(skillItem);
}
Please suggest.
 
     
    