Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "results": {
- "collection1": [
- {
- "rank": "1",
- "id": "abc",
- "vote": "8542"
- },
- {
- "rank": "2",
- "id": "bcd",
- "vote": "2000"
- },
- ]
- function transform(data) {
- for(var collection in data.results) {
- data.results[collection].filter(function(user) {
- return user.vote === '8542';
- });
- }
- return data;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement