pax_global_header00006660000000000000000000000064127305142610014513gustar00rootroot0000000000000052 comment=34e1d6a80baa4eac9723795a0674c14119ace1bd array-union-1.0.2/000077500000000000000000000000001273051426100137575ustar00rootroot00000000000000array-union-1.0.2/.editorconfig000066400000000000000000000002761273051426100164410ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [{package.json,*.yml}] indent_style = space indent_size = 2 array-union-1.0.2/.gitattributes000066400000000000000000000000141273051426100166450ustar00rootroot00000000000000* text=auto array-union-1.0.2/.gitignore000066400000000000000000000000151273051426100157430ustar00rootroot00000000000000node_modules array-union-1.0.2/.travis.yml000066400000000000000000000001151273051426100160650ustar00rootroot00000000000000sudo: false language: node_js node_js: - '6' - '4' - '0.12' - '0.10' array-union-1.0.2/index.js000066400000000000000000000002131273051426100154200ustar00rootroot00000000000000'use strict'; var arrayUniq = require('array-uniq'); module.exports = function () { return arrayUniq([].concat.apply([], arguments)); }; array-union-1.0.2/license000066400000000000000000000021371273051426100153270ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. array-union-1.0.2/package.json000066400000000000000000000012741273051426100162510ustar00rootroot00000000000000{ "name": "array-union", "version": "1.0.2", "description": "Create an array of unique values, in order, from the input arrays", "license": "MIT", "repository": "sindresorhus/array-union", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "array", "arr", "set", "uniq", "unique", "duplicate", "remove", "union", "combine", "merge" ], "dependencies": { "array-uniq": "^1.0.1" }, "devDependencies": { "ava": "*", "xo": "*" } } array-union-1.0.2/readme.md000066400000000000000000000010011273051426100155260ustar00rootroot00000000000000# array-union [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](https://travis-ci.org/sindresorhus/array-union) > Create an array of unique values, in order, from the input arrays ## Install ``` $ npm install --save array-union ``` ## Usage ```js const arrayUnion = require('array-union'); arrayUnion([1, 1, 2, 3], [2, 3]); //=> [1, 2, 3] arrayUnion(['foo', 'foo', 'bar'], ['foo']); //=> ['foo', 'bar'] ``` ## License MIT © [Sindre Sorhus](https://sindresorhus.com) array-union-1.0.2/test.js000066400000000000000000000003301273051426100152700ustar00rootroot00000000000000import test from 'ava'; import m from './'; test(t => { t.deepEqual(m([1, 2, 2, 3, 1, 2, 4], [1, 2, 3, 6, 7]), [1, 2, 3, 4, 6, 7]); t.deepEqual(m(['a', 'a', 'b', 'a'], ['c', 'a', 'd']), ['a', 'b', 'c', 'd']); });