node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

by-key

by-key

var byKey = require('by-key');
var people = [
    { name:'Peter', age:23 },
    { name:'Taylor', age:18 },
    { name:'Emma', age:29 }
];
 
 
people.sort(byKey('age'));