export function unzip < T > ( arrays ) { return arrays [ 0 ] ?. map ( ( _ , i ) => arrays . map ( ( array ) => array [ i ] ) ) ?? [ ] ; } export function inherit ( ) { Array . prototype . unzip = function < T > ( ) : T [ ] [ ] { return unzip ( this as T [ ] [ ] ) ; } ; } export default unzip ;