Preparing search index...
The search index is not available
@supuwoerc/utils
@supuwoerc/utils
core
swapArrayItem
Function swapArrayItem
swap
Array
Item
<
T
>
(
arr
,
index1
,
index2
)
:
void
Description
交换数组中两个元素的位置
Type Parameters
T
Parameters
arr
:
T
[]
原始数组
index1
:
number
元素1的索引
index2
:
number
元素2的索引
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@supuwoerc/utils
core
Storage
clear
All
Cookie
ensure
Prefix
ensure
Suffix
flow
Func
generateUUID
get
Array
Item
get
Cookie
get
Query
Param
get
Query
Params
move
Array
Item
remove
Array
Item
save
File
set
Cookie
swap
Array
Item
to
String
uniq
unique
By
core/types
Equal
Func
Storage
Options
css
add
Class
get
Element
Selector
has
Class
remove
Class
tree
array2
Tree
get
Parents
get
Target
From
Tree
tree2
Array
tree/types
Tree
Node
Equal
Func
Tree
vendor
debounce
throttle
verdict
is
Boolean
is
Date
is
Defined
is
Function
is
Http
Or
Https
is
Mobile
is
Null
is
Number
is
Object
is
Pc
is
Reg
Exp
is
String
is
Support
Font
Family
is
Undefined
Generated using
TypeDoc
Description
交换数组中两个元素的位置