Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

12345678910111213141516171819202122232425
  1. /**
  2. Create an array of unique values, in order, from the input arrays.
  3. @example
  4. ```
  5. import arrayUnion = require('array-union');
  6. arrayUnion([1, 1, 2, 3], [2, 3]);
  7. //=> [1, 2, 3]
  8. arrayUnion(['foo', 'foo', 'bar']);
  9. //=> ['foo', 'bar']
  10. arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
  11. //=> ['🐱', '🦄', '🐻', '🌈']
  12. arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
  13. //=> ['🐱', '🦄', '🐻', '🐶', '🌈']
  14. ```
  15. */
  16. declare function arrayUnion<ArgumentsType extends readonly unknown[]>(
  17. ...arguments: readonly ArgumentsType[]
  18. ): ArgumentsType;
  19. export = arrayUnion;