Browse files

Add basic version of gtl.curry

  • Loading branch information...
1 parent 71ef63f commit a4a73b545a402b155e76b37ef3077a42552f55d9 @kossnocorp committed Dec 5, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/gtl.coffee
View
7 src/gtl.coffee
@@ -163,6 +163,13 @@ gtl.rules.fuzzy = (str, searchStr) ->
return false
true
+###
+ Public: curry function
+###
+gtl.curry = (curriedRules) ->
+ (array, rules) ->
+ gtl.filter(array, curriedRules)
+
# Export gtl to global scope
if window?
window.gtl = gtl

0 comments on commit a4a73b5

Please sign in to comment.