web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
713 B

  1. # array-union [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](https://travis-ci.org/sindresorhus/array-union)
  2. > Create an array of unique values, in order, from the input arrays
  3. ## Install
  4. ```
  5. $ npm install array-union
  6. ```
  7. ## Usage
  8. ```js
  9. const arrayUnion = require('array-union');
  10. arrayUnion([1, 1, 2, 3], [2, 3]);
  11. //=> [1, 2, 3]
  12. arrayUnion(['foo', 'foo', 'bar']);
  13. //=> ['foo', 'bar']
  14. arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
  15. //=> ['🐱', '🦄', '🐻', '🌈']
  16. arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
  17. //=> ['🐱', '🦄', '🐻', '🐶', '🌈']
  18. ```
  19. ## License
  20. MIT © [Sindre Sorhus](https://sindresorhus.com)