Utils.js 314 Bytes
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10
export function DeepCopy(a)
{
   let json =  JSON.stringify(a);
   return JSON.parse(json);
}


export function getLogicAdress(bic)
{
      if (bic.length == 11) {
fukai committed
11
            return bic.substring(0, 8) + "X" + bic.substring(8, 11);
fukai committed
12
      }
fukai committed
13
      if (bic.length == 8) {
fukai committed
14
        return bic + "XXXX";
fukai committed
15 16 17
      }
     
}