“Tuple” 方法
_.TupleByReverse<tuple>
将元组的顺序反转,并返回
参数
tuple (Tuple): 需要处理的元组
返回
tuple (Tuple): 返回所有元素顺序被反转之后的元组
例子
type TupleAfterReverse = _.TupleByReverse<['react', 'angular']>;
// => ['angular', 'react']
type TupleAfterPush = _.TupleByReverse<['vue', 'react','angular']>;
// => ['angular', 'react', 'vue']