File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
packages/utilities/eff/src Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -1150,42 +1150,6 @@ export function flow(
11501150}
11511151// #endregion
11521152
1153- // #region Object & Array
1154-
1155- export function chunk < T > ( array : T [ ] , size : number ) : T [ ] [ ] {
1156- const chunks : T [ ] [ ] = [ ] ;
1157-
1158- if ( size <= 0 ) {
1159- return chunks ;
1160- }
1161-
1162- for ( let i = 0 , j = array . length ; i < j ; i += size ) {
1163- chunks . push ( array . slice ( i , i + size ) ) ;
1164- }
1165-
1166- return chunks ;
1167- }
1168-
1169- /**
1170- * Creates a new array from two supplied arrays by calling the supplied function
1171- * with the same-positioned element from each array.
1172- * @param arrayA - The first input array.
1173- * @param arrayB - The second input array.
1174- * @param callback - The function applied to each position of the arrays.
1175- * @returns A new array with the results of the function.
1176- */
1177- export function zipWith < T , U , V > (
1178- arrayA : readonly T [ ] ,
1179- arrayB : readonly U [ ] ,
1180- callback : ( a : T , b : U , index : number ) => V ,
1181- ) : V [ ] {
1182- const result : V [ ] = [ ] ;
1183- for ( let i = 0 ; i < arrayA . length ; i ++ ) {
1184- result . push ( callback ( arrayA [ i ] ! , arrayB [ i ] ! , i ) ) ;
1185- }
1186- return result ;
1187- }
1188-
11891153// #region Map & Set
11901154
11911155/**
You can’t perform that action at this time.
0 commit comments