Permalink
Commits on Mar 5, 2013
  1. Merge pull request #1 from anjlab/spellcheck-20130305T183043

    dmitrygusev committed Mar 5, 2013
    Spell Check Corrections
  2. Fix typos

    dmitrygusev committed Mar 5, 2013
Commits on Feb 27, 2013
  1. Merge pull request #988 from sdemjanenko/fix_bindAll_doc

    braddunbar committed Feb 27, 2013
    Fix _.bindAll documentation to note that methodNames are required
  2. Fix _.bindAll documentation to note that methodNames are required

    Stephen Demjanenko committed Feb 27, 2013
    Underscore currently raises an error in this case
Commits on Feb 25, 2013
  1. Merge pull request #984 from tonythomson/lastIndexOf-UT-fix

    braddunbar committed Feb 25, 2013
    Update unit test to call correct method.
Commits on Feb 15, 2013
  1. Merge pull request #976 from braddunbar/qunit

    jashkenas committed Feb 15, 2013
    Update QUnit, phantomjs.
  2. Revert "Simplifying _.bind to remove ES5 edge cases"

    jashkenas committed Feb 15, 2013
    This reverts commit ce3d1ae.
  3. Update QUnit, phantomjs.

    braddunbar committed Feb 15, 2013
  4. Merge pull request #974 from ansman/master

    jashkenas committed Feb 15, 2013
    Make groupBy accept array indices as the iterator
Commits on Feb 13, 2013
  1. Make groupBy accept array indices as the iterator

    ansman committed Feb 13, 2013
    Background
    ---
    We're using a data format that looks like this:
    
        [['type1', 1234], ['type2', 4321], ...]
    
    I want to group that data by the first element in each sub array.
    
    Why it didn't work
    ---
    Because the iterator defaulted to `_.identity` if the given iterator was
    falsy it worked fine with integers != 0 so for example `_.groupBy(data, 1)`
    worked fine but `_.groupBy(data, 0)` didn't.
    
    The fix
    ---
    I simply changed so that the iterator is only set to the default value
    if the given one is `null` or `undefined`.
    
    Tests
    ---
    I added two simple tests that group a multi dimensional array using 0
    and 1 as the iterator.
    
    Backwards compatibility
    ---
    This, of course, breaks backward compatibility but I doubt that anyone
    relied on this behaviour.
    
    Discussion
    ---
    I think this solution is better than having to cast the integer to a
    string seeing as that is "wrong" (array indices are integers, not
    strings), please let me know if you disagree.
Commits on Feb 12, 2013
  1. removed undefined bit

    jashkenas committed Feb 12, 2013
  2. Merge pull request #964 from clottes/contrib

    jashkenas committed Feb 12, 2013
    added a few more test cases
  3. Merge pull request #970 from caseywebdev/defaults

    jashkenas committed Feb 12, 2013
    _.defaults only overrides `undefined` values
Commits on Feb 6, 2013
  1. added a few more test cases

    clottes committed Feb 6, 2013
Commits on Feb 1, 2013
  1. Removing the ability for bindAll to be called with no arguments. Whit…

    jashkenas committed Feb 1, 2013
    …e-listing the function names to be bound is always a better option.
Commits on Jan 30, 2013
  1. Underscore.js 1.4.4

    jashkenas committed Jan 30, 2013
  2. Fixes #474 -- add _.partial

    jashkenas committed Jan 30, 2013
  3. Merge pull request #953 from caseywebdev/master

    jashkenas committed Jan 30, 2013
    Add raw/ to .npmignore
Commits on Jan 25, 2013
  1. Add raw/ to .npmignore

    caseywebdev committed Jan 25, 2013
Commits on Jan 21, 2013
  1. Merge pull request #947 from lukeasrodgers/add_context_param_to_docs

    jashkenas committed Jan 21, 2013
    Updating docs with optional `context` arg for a few methods.
Commits on Jan 19, 2013
  1. Updating docs with optional `context` arg for a few methods.

    lukeasrodgers committed Jan 19, 2013
    `groupBy`, `countBy` and `sortedIndex` can all take an optional
    `context` argument, but this wasn't in the docs.
Commits on Jan 3, 2013
  1. Tweak style.

    braddunbar committed Jan 3, 2013
  2. Merge pull request #928 from markstory/invoke-optimize

    braddunbar committed Jan 3, 2013
    Minor optimization for _.invoke()
  3. Minor optimization for _.invoke()

    markstory committed Jan 3, 2013
    _.isFunction() doesn't need to be called on each
    iteration in the loop. The result will never change.
Commits on Dec 29, 2012