js array extention methods
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
README.md

README.md

javascript Array extension

functions

live samples:

Usage

namespace arrayExt

SortBy

arrayExt.SortBy(myArrayOfObjects,[ "name", "-type" ]);

sorting by objects property "name" ascending and property "type" descending

UniqueBy

arrayExt.UniqueBy(myArrayOfObjects,["name", "type"]);

getting unique objects by properties "name" and "type"

FilterBy

arrayExt.FilterBy(myArrayOfObjects,[ { "key": "name", "value": "John", "operator": "not like" } ]; );

filtering array by property "name" with value not like "John"

Operator
equal
not equal
like
not like

License

This project is licensed under the MIT License