結果 : javascript test if method exists