Skip to content

Split ArrayConstructor.from method into 2 overloads#19693

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
timocov:fix19682
Nov 2, 2017
Merged

Split ArrayConstructor.from method into 2 overloads#19693
mhegazy merged 1 commit into
microsoft:masterfrom
timocov:fix19682

Conversation

@timocov
Copy link
Copy Markdown
Contributor

@timocov timocov commented Nov 2, 2017

Fixes #19682

Comment thread src/lib/es2015.core.d.ts Outdated
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U = T>(arrayLike: ArrayLike<T>, mapfn?: (v: T, k: number) => U, thisArg?: any): U[];
from<T, U = T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for the default now. it was only needed if mapfn was not specified. but now we have a place to infer from all the time

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhegazy removed

@mhegazy mhegazy merged commit c3e19ab into microsoft:master Nov 2, 2017
@timocov timocov deleted the fix19682 branch November 3, 2017 04:47
@timocov timocov restored the fix19682 branch November 4, 2017 07:15
@timocov timocov deleted the fix19682 branch November 4, 2017 08:10
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants