Permalink
Browse files

indexof sort

  • Loading branch information...
1 parent 79ca688 commit 51188057e66430b7c16f56e766f19300ed9bda69 @seanhess seanhess committed May 28, 2012
Showing with 14 additions and 3 deletions.
  1. +4 −1 index.coffee
  2. +10 −2 index.js
View
@@ -91,14 +91,17 @@ fjs = (_) ->
groupBy = curry (iterator, list) -> _.groupBy list, iterator
invoke = curry (iterator, list) -> _.invoke list, iterator
+ indexOf = curry (value, list) -> _.indexOf list, value
+ sort = (list) -> list.concat().sort()
+
reduce = curry (iterator, memo, list) -> _.reduce list, iterator, memo
# first/head do NOT allow you to pass N, the number to grab. use "take" below instead
head = first = _.first
last = _.last
tail = rest = _.rest
- us = {find, map, filter, reduce, memoize, compose, min, max, each, head, first, last, tail, rest, sortBy, groupBy, invoke}
+ us = {find, map, filter, reduce, memoize, compose, min, max, each, head, first, last, tail, rest, sortBy, groupBy, invoke, indexOf, sort}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 5118805

Please sign in to comment.