if (fromIndex !== -1) {