結果 : how to check function exists in javascript