UNPKG

@realsee/dnalogel

Version:
7 lines (6 loc) 227 B
/** * 筛选出给定数组中,相邻元素不能重复的元素组成的新数组 * @param array 要筛选的数组 * @returns 筛选后的新数组 */ export declare function filterAdjacentDistinct<T>(array: T[]): T[];