Skip to content

Commit

Permalink
change return value to be function return value
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Jul 3, 2015
1 parent 804a6e7 commit 1832a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function args(indices) {
, a = to.arr(arguments)
.filter(function(d,x){ return is.in(i)(x) })

return fn.apply(ctx || this, a), a[0]
return fn.apply(ctx || this, a)
}
}
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('args', function() {
expect(result).to.be.eql(o)
})

it('should return first arg', function() {
it('should return value of function', function() {
expect(args([1,2])(String)('a','b','c')).to.be.eql('b')
})
})

0 comments on commit 1832a19

Please sign in to comment.