hidden export function hasDuplicates < T > ( array ) { return new Set ( array ) . size !== array . length ; } hidden export function getObjectValues < T = any > ( obj ) { if ( Object . values ) return Object . values ( obj ) ; return Object . keys ( obj ) . map ( function ( e ) { return obj [ e ] ; } ) ; } hidden param array param size export function chunkArray < T > ( array , size ) { size = Math . max ( size , 0 ) ; const length = array == null ? 0 : array . length ; if ( ! length || size < 1 ) { return [ ] ; } let index = 0 ; let resIndex = 0 ; const result = Array ( Math . ceil ( length / size ) ) ; while ( index < length ) { result [ resIndex ++ ] = array . slice ( index , ( index += size ) ) ; } return result ; }