List is getting filtered without using it directly
<p>This is the code below:</p>

<pre><code>OnChangePaymentMode: function (mode) {
    var Data = [];
    Data = QuickJV.FormOperations.List;
    if (Data != null) {
        if (mode != "All") {
            for (var i = 0; i &lt; Data.receiptList.length; i++) {
                Data.receiptList[i].paymentModeList = Data.receiptList[i].paymentModeList.filter(function (el, i) {
                    return (el.paymentMode == mode);
                });
            }
            for (var i = 0; i &lt; Data.paymentList.length; i++) {
                Data.paymentList[i].paymentModeList = Data.paymentList[i].paymentModeList.filter(function (el, i) {
                    return (el.paymentMode == mode);
                });
            }
        }
        QuickJV.FormOperations.CreateRowDataForReceiptAndPayment(Data);
    }
}
</code></pre>

<p>I am using jquery filter on "Data" variable but still my <code>QuickJV.FormOperations.List</code> data is getting filtered which is my main List.</p>