remove_index

0.0.2 • Public • Published

Remove_Index

Removes the element at the specified index. I felt splice didn't read cleanly so I decided to make it cleaner looking

Installation

npm install remove_index

Usage

var remove = require('remove_index');
var a = ['A','B','C'];
 
= remove(a, 0);
//=>a = ['B','C']

API

remove_index(arr, ind)

arr

Type: Array

ind

Type: Integer
Condition: ind must be greater than or equal to 0

Removes the element at the specified index.

License

MIT © Alex Brelsford

Dependents (3)

Package Sidebar

Install

npm i remove_index

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • abrelsfo