JavaScript:实现cocktailShakerSort鸡尾酒排序算法 export function cocktailShakerSort (items) { for (let i = items.length - 1; i > 0