Files
test-repo/tests/flow-repo/object_annot/test.js
T
2020-05-08 00:55:46 +08:00

9 lines
208 B
JavaScript

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);
}