import type { WebpackModule } from "./analyze" ; function has < T extends object > ( obj ) { return function ( prop ) { return obj . hasOwnProperty ( prop ) ; } ; } function isValidModule ( sample ) { const isProp = has ( sample ) ; if ( ! isProp ( "reasons" ) ) return false ; return true ; } export function vlidateStatsJson ( modules ) { const samples = modules . slice ( 0 , 10 ) ; return samples . some ( isValidModule ) ; }