try-catch | try { var newTest1=someData.some1; } catch (e) {}
try { var newTest2=someData.some2; } catch (e) {}
try { var newTest3=someData.some3; } catch (e) {}
try { var newTest4=someData.some4; } catch (e) {}
try { var newTest5=someData.some5; } catch (e) {}
try { var newTest6=someData.some6; } catch (e) {}
try { var newTest7=someData.some7; } catch (e) {}
try { var newTest8=someData.some8; } catch (e) {}
try { var newTest9=someData.some9; } catch (e) {}
try { var newTest10=someData.some10; } catch (e) {}
try { var newTest11=someData.some11; } catch (e) {}
try { var newTest12=someData.some12; } catch (e) {}
try { var newTest13=someData.some13; } catch (e) {}
try { var newTest14=someData.some14; } catch (e) {}
try { var newTest15=someData.some15; } catch (e) {}
try { var newTest16=someData.some16; } catch (e) {}
try { var newTest17=someData.some17; } catch (e) {}
try { var newTest18=someData.some18; } catch (e) {}
try { var newTest19=someData.some19; } catch (e) {}
try { var newTest20=someData.some20; } catch (e) {}
| ready |
if-else | if(someData.some1!=undefined && someData.some1!=''){ var newTest1=someData.some1; } else {}
if(someData.some2!=undefined && someData.some2!=''){ var newTest2=someData.some2; } else {}
if(someData.some3!=undefined && someData.some3!=''){ var newTest3=someData.some3; } else {}
if(someData.some4!=undefined && someData.some4!=''){ var newTest4=someData.some4; } else {}
if(someData.some5!=undefined && someData.some5!=''){ var newTest5=someData.some5; } else {}
if(someData.some6!=undefined && someData.some6!=''){ var newTest6=someData.some6; } else {}
if(someData.some7!=undefined && someData.some7!=''){ var newTest7=someData.some7; } else {}
if(someData.some8!=undefined && someData.some8!=''){ var newTest8=someData.some8; } else {}
if(someData.some9!=undefined && someData.some9!=''){ var newTest9=someData.some9; } else {}
if(someData.some10!=undefined && someData.some10!=''){ var newTest10=someData.some10; } else {}
if(someData.some11!=undefined && someData.some11!=''){ var newTest11=someData.some11; } else {}
if(someData.some12!=undefined && someData.some12!=''){ var newTest12=someData.some12; } else {}
if(someData.some13!=undefined && someData.some13!=''){ var newTest13=someData.some13; } else {}
if(someData.some14!=undefined && someData.some14!=''){ var newTest14=someData.some14; } else {}
if(someData.some15!=undefined && someData.some15!=''){ var newTest16=someData.some16; } else {}
if(someData.some17!=undefined && someData.some17!=''){ var newTest17=someData.some17; } else {}
if(someData.some18!=undefined && someData.some18!=''){ var newTest18=someData.some18; } else {}
if(someData.some19!=undefined && someData.some19!=''){ var newTest19=someData.some19; } else {}
if(someData.some20!=undefined && someData.some20!=''){ var newTest20=someData.some20; } else {}
| ready |
if-else short | if(someData.some1!=undefined){ var newTest1=someData.some1; } else {}
if(someData.some2!=undefined){ var newTest2=someData.some2; } else {}
if(someData.some3!=undefined){ var newTest3=someData.some3; } else {}
if(someData.some4!=undefined){ var newTest4=someData.some4; } else {}
if(someData.some5!=undefined){ var newTest5=someData.some5; } else {}
if(someData.some6!=undefined){ var newTest6=someData.some6; } else {}
if(someData.some7!=undefined){ var newTest7=someData.some7; } else {}
if(someData.some8!=undefined){ var newTest8=someData.some8; } else {}
if(someData.some9!=undefined){ var newTest9=someData.some9; } else {}
if(someData.some10!=undefined){ var newTest10=someData.some10; } else {}
if(someData.some11!=undefined){ var newTest11=someData.some11; } else {}
if(someData.some12!=undefined){ var newTest12=someData.some12; } else {}
if(someData.some13!=undefined){ var newTest13=someData.some13; } else {}
if(someData.some14!=undefined){ var newTest14=someData.some14; } else {}
if(someData.some15!=undefined){ var newTest16=someData.some16; } else {}
if(someData.some17!=undefined){ var newTest17=someData.some17; } else {}
if(someData.some18!=undefined){ var newTest18=someData.some18; } else {}
if(someData.some19!=undefined){ var newTest19=someData.some19; } else {}
if(someData.some20!=undefined){ var newTest20=someData.some20; } else {}
| ready |
if-else like 2nd test, but split | if(someData.some1!=undefined){ var newTest1=someData.some1; } else {}
if(someData.some2!=undefined){ var newTest2=someData.some2; } else {}
if(someData.some3!=undefined){ var newTest3=someData.some3; } else {}
if(someData.some4!=undefined){ var newTest4=someData.some4; } else {}
if(someData.some5!=undefined){ var newTest5=someData.some5; } else {}
if(someData.some6!=undefined){ var newTest6=someData.some6; } else {}
if(someData.some7!=undefined){ var newTest7=someData.some7; } else {}
if(someData.some8!=undefined){ var newTest8=someData.some8; } else {}
if(someData.some9!=undefined){ var newTest9=someData.some9; } else {}
if(someData.some10!=undefined){ var newTest10=someData.some10; } else {}
if(someData.some11!=undefined){ var newTest11=someData.some11; } else {}
if(someData.some12!=undefined){ var newTest12=someData.some12; } else {}
if(someData.some13!=undefined){ var newTest13=someData.some13; } else {}
if(someData.some14!=undefined){ var newTest14=someData.some14; } else {}
if(someData.some15!=undefined){ var newTest16=someData.some16; } else {}
if(someData.some17!=undefined){ var newTest17=someData.some17; } else {}
if(someData.some18!=undefined){ var newTest18=someData.some18; } else {}
if(someData.some19!=undefined){ var newTest19=someData.some19; } else {}
if(someData.some20!=undefined){ var newTest20=someData.some20; } else {}
if(someData.some1!=''){ var newTest1=someData.some1; } else {}
if(someData.some2!=''){ var newTest2=someData.some2; } else {}
if(someData.some3!=''){ var newTest3=someData.some3; } else {}
if(someData.some4!=''){ var newTest4=someData.some4; } else {}
if(someData.some5!=''){ var newTest5=someData.some5; } else {}
if(someData.some6!=''){ var newTest6=someData.some6; } else {}
if(someData.some7!=''){ var newTest7=someData.some7; } else {}
if(someData.some8!=''){ var newTest8=someData.some8; } else {}
if(someData.some9!=''){ var newTest9=someData.some9; } else {}
if(someData.some10!=''){ var newTest10=someData.some10; } else {}
if(someData.some11!=''){ var newTest11=someData.some11; } else {}
if(someData.some12!=''){ var newTest12=someData.some12; } else {}
if(someData.some13!=''){ var newTest13=someData.some13; } else {}
if(someData.some14!=''){ var newTest14=someData.some14; } else {}
if(someData.some15!=''){ var newTest16=someData.some16; } else {}
if(someData.some17!=''){ var newTest17=someData.some17; } else {}
if(someData.some18!=''){ var newTest18=someData.some18; } else {}
if(someData.some19!=''){ var newTest19=someData.some19; } else {}
if(someData.some20!=''){ var newTest20=someData.some20; } else {}
| ready |
try-catch with empty string checking | try { if(someData.some1!=''){ var newTest1=someData.some1; } } catch (e) {}
try { if(someData.some2!=''){ var newTest2=someData.some2; } } catch (e) {}
try { if(someData.some3!=''){ var newTest3=someData.some3; } } catch (e) {}
try { if(someData.some4!=''){ var newTest4=someData.some4; } } catch (e) {}
try { if(someData.some5!=''){ var newTest5=someData.some5; } } catch (e) {}
try { if(someData.some6!=''){ var newTest6=someData.some6; } } catch (e) {}
try { if(someData.some7!=''){ var newTest7=someData.some7; } } catch (e) {}
try { if(someData.some8!=''){ var newTest8=someData.some8; } } catch (e) {}
try { if(someData.some9!=''){ var newTest9=someData.some9; } } catch (e) {}
try { if(someData.some10!=''){ var newTest10=someData.some10; } } catch (e) {}
try { if(someData.some11!=''){ var newTest11=someData.some11; } } catch (e) {}
try { if(someData.some12!=''){ var newTest12=someData.some12; } } catch (e) {}
try { if(someData.some13!=''){ var newTest13=someData.some13; } } catch (e) {}
try { if(someData.some14!=''){ var newTest14=someData.some14; } } catch (e) {}
try { if(someData.some15!=''){ var newTest16=someData.some16; } } catch (e) {}
try { if(someData.some17!=''){ var newTest17=someData.some17; } } catch (e) {}
try { if(someData.some18!=''){ var newTest18=someData.some18; } } catch (e) {}
try { if(someData.some19!=''){ var newTest19=someData.some19; } } catch (e) {}
try { if(someData.some20!=''){ var newTest20=someData.some20; } } catch (e) {}
| ready |
if-else to compare with 5th test | if(someData.some1!=''){ var newTest1=someData.some1; } else {}
if(someData.some2!=''){ var newTest2=someData.some2; } else {}
if(someData.some3!=''){ var newTest3=someData.some3; } else {}
if(someData.some4!=''){ var newTest4=someData.some4; } else {}
if(someData.some5!=''){ var newTest5=someData.some5; } else {}
if(someData.some6!=''){ var newTest6=someData.some6; } else {}
if(someData.some7!=''){ var newTest7=someData.some7; } else {}
if(someData.some8!=''){ var newTest8=someData.some8; } else {}
if(someData.some9!=''){ var newTest9=someData.some9; } else {}
if(someData.some10!=''){ var newTest10=someData.some10; } else {}
if(someData.some11!=''){ var newTest11=someData.some11; } else {}
if(someData.some12!=''){ var newTest12=someData.some12; } else {}
if(someData.some13!=''){ var newTest13=someData.some13; } else {}
if(someData.some14!=''){ var newTest14=someData.some14; } else {}
if(someData.some15!=''){ var newTest16=someData.some16; } else {}
if(someData.some17!=''){ var newTest17=someData.some17; } else {}
if(someData.some18!=''){ var newTest18=someData.some18; } else {}
if(someData.some19!=''){ var newTest19=someData.some19; } else {}
if(someData.some20!=''){ var newTest20=someData.some20; } else {}
| ready |