mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
231 B
TypeScript
18 lines
231 B
TypeScript
import keys = require('object-keys');
|
|
|
|
keys({ A: 1, B: 2, C: 3 });
|
|
// => string[]
|
|
|
|
keys.shim();
|
|
// typeof keys
|
|
|
|
keys([ 0, 1, 2, 3 ]);
|
|
// => string[]
|
|
|
|
keys(() => 0);
|
|
// => string[]
|
|
|
|
function testArguments() {
|
|
keys(arguments);
|
|
}
|