Files
test-repo/tests/object_annot/test.js
T

8 lines
208 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
function foo(x: Array<Object>): Array<Object> {
return x.sort((a, b) => a.foo - b.foo);
}
// Make sure Object works with Object.keys()
function bar(x: Object): Array<string> {
return Object.keys(x);
}