diff --git a/src/index.ts b/src/index.ts index 8bdca59..d433bf3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,7 +52,7 @@ export class RpcNetwork { if (array.includes(item)) { let queue = new Set(array); queue.delete(item); - array = [...queue]; + [].splice.apply(array, [0, array.length].concat([...queue])); } }