Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more helpful values for Object.entries() and Object.values() #4527

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ declare class Object {
static create(o: any, properties?: any): any; // compiler magic
static defineProperties(o: any, properties: any): any;
static defineProperty(o: any, p: any, attributes: any): any;
static entries(object: any): Array<[string, mixed]>;
static entries <T> (o: { +[s: string]: T }) : Array<[string, T]>;
static entries <T> (o: Array<T> | $ReadOnlyArray<T>) : Array<[string, T]>;
static entries (o: any) : Array<[string, mixed]>;
static freeze<T>(o: T): T;
static getOwnPropertyDescriptor(o: any, p: any): any;
static getOwnPropertyNames(o: any): Array<string>;
Expand All @@ -45,11 +47,14 @@ declare class Object {
static isExtensible(o: any): boolean;
static isFrozen(o: any): boolean;
static isSealed(o: any): boolean;
static keys <T> (o: { +[key: T]: any }): Array<T>;
static keys(o: any): Array<string>;
static preventExtensions(o: any): any;
static seal(o: any): any;
static setPrototypeOf(o: any, proto: ?Object): bool;
static values(object: any): Array<mixed>;
static values <T> (o: { +[s: string]: T }) : Array<T>;
static values <T> (o: Array<T> | $ReadOnlyArray<T>) : Array<T>;
static values(o: any): Array<mixed>;
hasOwnProperty(prop: any): boolean;
isPrototypeOf(o: any): boolean;
propertyIsEnumerable(prop: any): boolean;
Expand Down