結果 : return array without last element js