coer-elements 2.0.35 → 2.0.37

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.
@@ -548,11 +548,10 @@ const GridTemplates = {
548
548
  class Collections {
549
549
  /** Set an index and concat more arrays of the same type */
550
550
  static SetIndex(array, ...args) {
551
- let index = 0;
552
551
  for (const arg of args) {
553
- array = Tools.BreakReference(array).concat(Tools.BreakReference(arg));
552
+ array = [...array].concat([...arg]);
554
553
  }
555
- return Tools.BreakReference(array).map(item => Object.assign({ index: index++ }, item));
554
+ return [...array].map((item, index) => Object.assign({}, item, { index }));
556
555
  }
557
556
  /** Sort an array in ascending order by property */
558
557
  static SortBy(array, property, propertyType = 'string') {