import _ from '../util' ; export default function ( model , { partsPerStep = 10 } ) { const partIndices = ( model . parts || [ ] ) . map ( ( el , idx ) => idx ) ; return _ . chunk ( partIndices , partsPerStep ) . map ( el => ( { parts : el } ) ) ; }