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 @@ -1210,42 +1210,6 @@ export function flow(
12101210}
12111211// #endregion
12121212
1213- // #region Object & Array
1214-
1215- export function chunk < T > ( array : T [ ] , size : number ) : T [ ] [ ] {
1216- const chunks : T [ ] [ ] = [ ] ;
1217-
1218- if ( size <= 0 ) {
1219- return chunks ;
1220- }
1221-
1222- for ( let i = 0 , j = array . length ; i < j ; i += size ) {
1223- chunks . push ( array . slice ( i , i + size ) ) ;
1224- }
1225-
1226- return chunks ;
1227- }
1228-
1229- /**
1230- * Creates a new array from two supplied arrays by calling the supplied function
1231- * with the same-positioned element from each array.
1232- * @param arrayA - The first input array.
1233- * @param arrayB - The second input array.
1234- * @param callback - The function applied to each position of the arrays.
1235- * @returns A new array with the results of the function.
1236- */
1237- export function zipWith < T , U , V > (
1238- arrayA : readonly T [ ] ,
1239- arrayB : readonly U [ ] ,
1240- callback : ( a : T , b : U , index : number ) => V ,
1241- ) : V [ ] {
1242- const result : V [ ] = [ ] ;
1243- for ( let i = 0 ; i < arrayA . length ; i ++ ) {
1244- result . push ( callback ( arrayA [ i ] ! , arrayB [ i ] ! , i ) ) ;
1245- }
1246- return result ;
1247- }
1248-
12491213// #region Map & Set
12501214
12511215/**
You can’t perform that action at this time.
0 commit comments