orderd-array-remove-all

1.0.0 • Public • Published

orderd-array-remove-all

Removed all occurrence of an element from array by keeping order of elements inside array

Install

$ npm install --save orderd-array-remove-all

Example

var remove = require('orderd-array-remove-all');

console.log(remove([1, 2, 3, 4, 3], 3));
// -> [1, 2, 4]

require('orderd-array-remove-all')(array, element)

Arguments:

  • array: list
  • element: the element that need to be removed

Returns: Returns the updated array after removal of the element

License

© 2016 Vikram Jadhav. MIT License

Package Sidebar

Install

npm i orderd-array-remove-all

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vikramcse