pax_global_header00006660000000000000000000000064123726324550014523gustar00rootroot0000000000000052 comment=e91802976c4710eef8dea2090d48e48525cf41b1 array-differ-1.0.0/000077500000000000000000000000001237263245500140745ustar00rootroot00000000000000array-differ-1.0.0/.editorconfig000066400000000000000000000003621237263245500165520ustar00rootroot00000000000000# editorconfig.org root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [package.json] indent_style = space indent_size = 2 [*.md] trim_trailing_whitespace = false array-differ-1.0.0/.gitattributes000066400000000000000000000000141237263245500167620ustar00rootroot00000000000000* text=auto array-differ-1.0.0/.gitignore000066400000000000000000000000151237263245500160600ustar00rootroot00000000000000node_modules array-differ-1.0.0/.jshintrc000066400000000000000000000002761237263245500157260ustar00rootroot00000000000000{ "node": true, "esnext": true, "bitwise": true, "camelcase": true, "curly": true, "immed": true, "newcap": true, "noarg": true, "undef": true, "unused": "vars", "strict": true } array-differ-1.0.0/.travis.yml000066400000000000000000000000461237263245500162050ustar00rootroot00000000000000language: node_js node_js: - '0.10' array-differ-1.0.0/index.js000066400000000000000000000002731237263245500155430ustar00rootroot00000000000000'use strict'; module.exports = function (arr) { var rest = [].concat.apply([], [].slice.call(arguments, 1)); return arr.filter(function (el) { return rest.indexOf(el) === -1; }); }; array-differ-1.0.0/license000066400000000000000000000021371237263245500154440ustar00rootroot00000000000000The 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-differ-1.0.0/package.json000066400000000000000000000011551237263245500163640ustar00rootroot00000000000000{ "name": "array-differ", "version": "1.0.0", "description": "Create an array with values that are present in the first input array but not additional ones", "license": "MIT", "repository": "sindresorhus/array-differ", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "array", "difference", "diff", "differ", "filter", "exclude" ], "devDependencies": { "mocha": "*" } } array-differ-1.0.0/readme.md000066400000000000000000000012011237263245500156450ustar00rootroot00000000000000# array-differ [![Build Status](https://travis-ci.org/sindresorhus/array-differ.svg?branch=master)](https://travis-ci.org/sindresorhus/array-differ) > Create an array with values that are present in the first input array but not additional ones ## Install ```sh $ npm install --save array-differ ``` ## Usage ```js var arrayDiffer = require('array-differ'); arrayDiffer([2, 3, 4], [3, 50]); //=> [2, 4] ``` ## API ### arrayDiffer(input, values, [values, ...]) Returns the new array. #### input Type: `array` #### values Type: `array` Arrays of values to exclude. ## License MIT © [Sindre Sorhus](http://sindresorhus.com) array-differ-1.0.0/test.js000066400000000000000000000003211237263245500154050ustar00rootroot00000000000000'use strict'; var assert = require('assert'); var arrayDifference = require('./'); it('should filter out the difference', function () { assert.deepEqual(arrayDifference([2, 3, 4], [3, 50, 60]), [2, 4]); });