forked from lodash/lodash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdalton do you dig this style change or are you partial to
break
? Theres plenty of other places this can be changed as well74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the
break
.For me it's more readable, when minifiers get a hold of it they tend to transform it into something like you've done.
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If ya wanna help get lodash bumped I'd love some help porting my php jsdoc->markdown converter to JavaScript.
See https://github.com/jdalton/docdown/tree/js.
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, personally I hate it :). Might take a look at it but I'm wrapped up in a bunch of projects already
One note is I doubt minifiers will be able to coerce the break implementation for the
forIn
anddifference
family74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll mull it over, I do that expression combining in methods like
takeWhile
and friends.74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speaking of
takeWhile
, you have an unnecessary variable in that function. You can rewrite it:74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch.
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want a pr or you want to handle it?
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naw, I got it already in local. That's the advantage of not just being a repo sitter, things get done faster.
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On another note @jdalton, would you be open to a
zipMin
implementation. Could easily accomplish it in an extra 4 or so loc via a wrapper74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in the opposite school for the the jashkenas/underscore#1237 discussion
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll write a quick implementation without comments and leave it up to you
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the way
#1237
ended, not destroying data is a win.74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's something to both arguments which is why I think they should both be enablable (or whatever). I think this comment said it best jashkenas/underscore#1237 (comment)
74f58c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick implementation 2b0dd82