UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
types
/
utils
/
array.d.ts
4 lines
(3 loc)
•
224 B
TypeScript
View Raw
1
2
3
4
export
declare
function
addUniqueItem<T>(
arr
: T[],
item
: T):
void
;
export
declare
function
removeItem<T>(
arr
: T[],
item
: T):
void
;
export
declare
function
moveItem<T>([...arr]: T[],
fromIndex
:
number
,
toIndex
:
number
): T[];