intersectArrays
Creates array containing values that are present in all provided arrays.
How to use
// returns array of values, that are present in all provided arrays; // -> ['a', 'b'] // you can provide any number of arrays; // -> ['a'] // resulting array contains unique values, no duplicates; // -> ['a', 'b'] // returns an empty array when no parameters are provided; // -> [] // returns an empty array when any of the parameters is not an array; // -> []
Bug reports, feature requests and contact
If you found any bugs, if you have feature requests or any questions, please, either file an issue at GitHub or send me an e-mail at riki@fczbkk.com.
License
intersectArrays is published under the MIT license.