import { EntityToFix } from './types' ; export function partitionByVulnerable ( entities ) { const vulnerable = [ ] ; const notVulnerable = [ ] ; for ( const entity of entities ) { const hasIssues = entity . testResult . issues . length > 0 ; if ( hasIssues ) { vulnerable . push ( entity ) ; } else { notVulnerable . push ( entity ) ; } } return { vulnerable , notVulnerable } ; }