0.0.2 • Published 8 years ago

remove_index v0.0.2

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

##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'];

a = 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