結果 : check if function exists javascript