import { PlugyStash } from "./types" ; export function deletePages ( stash , from , to = stash . pages . length ) { const removed = stash . pages . splice ( from , to - from ) ; const allItems = [ ] ; for ( const { items } of removed ) { allItems . push ( ... items ) ; } return allItems ; }