mlist
install
$ [sudo] npm install mlist
usage
var mlist = set = mlistset var cities = // set properties to the clients list by key;;;;; // get properties from the clients list by key; // New York City; // Tampa ; // Los Angeles; // Boston ; // Washington D.C
api
prepend(value)
Prepend a value to the list. Values are indexed.
var list = prepend = mlistprepend ;// or;;; ; // 3; // 2; // 1
append(value)
Append a value to the list. Values are indexed.
var list = append = mlistappend ;// or;;; ; // 1; // 2; // 3
get(value)
Get a value from the list by key
var list = get = mlistget ; // myValue
set(key, value)
Set a value in the list by key
var list = set = mlistset ;
concat(value)
Concat values to the list. Accepts any value. Appends all elements of an array like [].concat
var list = concat = mlistconcat ;;;
each(callback)
Iterate over each indexed element in the list and execute a function. Similar to `[].forEach
var list = each = mlisteach ;
map(callback)
Map a new list from an existing list
var list = map = mlistmap ;
forIn(callback)
var list = forIn = mlistforIn ;
filter(callback)
var list = filter = mlistfilter ;
keys()
var list = keys = mlistkeys console
values()
var list = values = mlistvalues console
author
Joseph Werle joseph.werle@gmail.com
license
MIT