array-util
Version:
Array utils for misc. but useful things, so far just compares arrays
25 lines (15 loc) • 542 B
Markdown
ArrayUtil
=========
Array utils to make doing things with arrays easier.
##Array.prototype.merge
Uniquely merge two arrays (even with object elements).
##Array.prototype.equals
Quick and easy truthy comparison of two arrays.
##Array.prototype.toObject
Convert an array to an array like object.
##Array.prototype.shuffle
Shuffle the elements within an array.
##Array.prototype.unique
Eliminate duplicate elements within an array.
##Array.prototype.group
Create multi-dimensional arrays based on element object properties.