@stemy/ngx-utils 10.3.2 → 10.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2219,6 +2219,16 @@
2219
2219
  }
2220
2220
  return result;
2221
2221
  };
2222
+ ArrayUtils.chunk = function (arr, size) {
2223
+ if (!ObjectUtils.isArray(arr))
2224
+ return [];
2225
+ size = Math.max(1, size);
2226
+ var result = [];
2227
+ for (var i = 0; i < arr.length; i += size) {
2228
+ result.push(arr.slice(i, i + size));
2229
+ }
2230
+ return result;
2231
+ };
2222
2232
  return ArrayUtils;
2223
2233
  }());
2224
2234