public/be-assets/node_modules/@yaireo/tagify/dist/tagify.esm.js
/**
 * concatenates N arrays without dups.
 * If an array's item is an Object, compare by `value`
 */
concatenates N arrays without dups.
If an array's item is an Object, compare by `value`
concatenates N arrays without dups . If an array ' s item is an Object compare by ` value `
function concatWithoutDups() {
  const newArr = [],
        existingObj = {};
  for (let arr of arguments) {
    for (let item of arr) {
      if (isObject(item)) {
        if (!existingObj[item.value]) {
          newArr.push(item);
          existingObj[item.value] = 1;
        }
      } 
      else if (!newArr.includes(item)) newArr.push(item);
    }
  }
  return newArr;
}
function concatWithoutDups ( ) { const newArr = [ ] , existingObj = { } ; for ( let arr of arguments ) { for ( let item of arr ) { if ( isObject ( item ) ) { if ( ! existingObj [ item . value ] ) { newArr . push ( item ) ; existingObj [ item . value ] = 1 ; } } else if ( ! newArr . includes ( item ) ) newArr . push ( item ) ; } } return newArr ; }
concatenates N arrays without dups.
concatenates N arrays without dups .
// if current item is an object which has yet to be added to the new array // if current item is not an object and is not in the new array