Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

feat(Array): add support for join #280

Closed
wants to merge 1 commit into from
Closed

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Sep 8, 2015

@mprobst could you please review

@@ -303,6 +303,14 @@ export class FacadeConverter extends base.TranspilerBase {
});
this.emit(')');
},
'Array.join': (c: ts.CallExpression, context: ts.Expression) => {
this.visit(context);
if (c.arguments.length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'm ok with writing if (c.arguments.length) { ... }, that's idiomatic enough in my opinion. YMMV.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, we don't need to transpile the transpiler, I'll update

@mprobst
Copy link
Contributor

mprobst commented Sep 8, 2015

LGTM with two nits.

@mprobst mprobst added the LGTM label Sep 8, 2015
@vicb
Copy link
Contributor Author

vicb commented Sep 8, 2015

landed as b642cf1

@vicb vicb closed this Sep 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

3 participants