remove-dupl

1.0.3 • Public • Published

Removing duplicates from arrays and files

npm version license

Instalation

NPM:

npm i remove-dupl --save

Yarn:

yarn add remove-dupl

Usage

const { removeFromArray, removeFromFile } = require("remove-dupl");
 
const newArr = removeFromArray([1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0]);
const count = removeFromFile("PATH_TO_FILE", "PATH_TO_NEW_FILE");

If the path to the new file is empty, it will overwrite the original file.

License

MIT © Joyent, Inc. and other Node contributors

Package Sidebar

Install

npm i remove-dupl

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.15 kB

Total Files

7

Last publish

Collaborators

  • deone