Sha256: fee5b431900c13231f41fe847902cafa0c3ff03c396889a60ea637bdd1ed3b02

Contents?: true

Size: 609 Bytes

Versions: 57

Compression:

Stored size: 609 Bytes

Contents

/**
Create an array of unique values, in order, from the input arrays.

@example
```
import arrayUnion = require('array-union');

arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]

arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']

arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
//=> ['🐱', '🦄', '🐻', '🌈']

arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
//=> ['🐱', '🦄', '🐻', '🐶', '🌈']
```
*/
declare function arrayUnion<ArgumentsType extends readonly unknown[]>(
	...arguments: readonly ArgumentsType[]
): ArgumentsType;

export = arrayUnion;

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.59 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.58 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.57 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.56 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.55 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.54 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.53 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.52 node_modules/array-union/index.d.ts
trusty-cms-6.3.1 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.51 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.50 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.49 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.48 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.47 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.46 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.45 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.44 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.43 node_modules/array-union/index.d.ts
immosquare-cleaner-0.1.42 node_modules/array-union/index.d.ts