結果 : check if string empty or undefined javascript