1.0.1 • Published 12 months ago

array-substraction v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Array Subtraction

Introduction/General Preview

The Array Subtraction library is a utility that allows you to extract one array from another. It provides a function called arrayDiff(a, b) that takes two arrays, a and b, as input and returns a new array that contains the elements from a that are not present in b. This library is useful when you need to find the difference between two arrays and obtain the unique elements from one array that are not found in the other.

Installation

You can install the Array Subtraction library via npm. Open your terminal and run the following command:

Usage

To use the Array Subtraction library in your project, you need to require it:

Once you have imported the library, you can call the arrayDiff(a, b) function to perform the array subtraction. Pass in two arrays, a and b, as arguments, and the function will return a new array with the elements from a that are not present in b.

Here's an example usage:

License

The Array Subtraction library is released under the MIT license. You can find the full license text in the LICENSE file.

Contribution

Contributions to the Array Subtraction library are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

We appreciate your contribution to making the Array Subtraction library better for everyone.

1.0.1

12 months ago

1.0.0

12 months ago