Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove .minmax() for now

not unrolled anyway
  • Loading branch information...
commit eef6ce3b5875718851b524ab95c3182cc6feaf4c 1 parent 6bf0f01
@tj tj authored
Showing with 0 additions and 36 deletions.
  1. +0 −28 index.js
  2. +0 −8 test/index.js
View
28 index.js
@@ -552,34 +552,6 @@ proto.min = function(fn){
};
/**
- * Determine the min/max values.
- *
- * With a callback function:
- *
- * pets.minmax(function(pet){
- * return pet.age
- * })
- *
- * With property strings:
- *
- * pets.minmax('age')
- *
- * With immediate values:
- *
- * nums.minmax()
- *
- * @param {Function|String} fn
- * @return {Number}
- * @api public
- */
-
-proto.minmax = function(fn){
- var min = this.min(fn);
- var max = this.max(fn);
- return [min, max];
-};
-
-/**
* Determine the sum.
*
* With a callback function:
View
8 test/index.js
@@ -177,14 +177,6 @@ describe('.min(fn)', function(){
})
})
-describe('.minmax()', function(){
- it('should a tuple', function(){
- var arr = [1,2,3,4,5,6,5,3,2];
- var ret = _(arr).minmax();
- ret.should.eql([1,6]);
- })
-})
-
describe('.select(fn)', function(){
it('should select values of truthy return', function(){
_([1,2,3,4,5]).select(function(n){
Please sign in to comment.
Something went wrong with that request. Please try again.