import { $O , AnyArray } from '../shared' ; import { commit } from './commit' ; import { Observable } from './Observable' ; /**
 * Emit a change for each index in the given range.
 */ export function commitIndices ( base , copy , index , count ) { const target = copy [ $O ] ; for ( let i = index ; i < index + count ; i ++ ) { commit ( target , base [ i ] , copy [ i ] , String ( i ) , i >= copy . length ) ; } }