namespace arrayExt
arrayExt.SortBy(myArrayOfObjects,[ "name", "-type" ]);
sorting by objects property "name" ascending and property "type" descending
arrayExt.UniqueBy(myArrayOfObjects,["name", "type"]);
getting unique objects by properties "name" and "type"
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 |
This project is licensed under the MIT License