2014-10-25 09:09:55 +11:00

10 lines
165 B
JavaScript

"use strict";
var seattlers = customers.filter(function(c) {
return c.city == "Seattle";
}).map(function(c) {
return {
name: c.name,
age: c.age
};
});