Skip to content

Instantly share code, notes, and snippets.

@Seteh
Forked from jozsefDevs/validation_curry.js
Last active August 29, 2015 14:07
Show Gist options
  • Save Seteh/288a63078859b4e41d9b to your computer and use it in GitHub Desktop.
Save Seteh/288a63078859b4e41d9b to your computer and use it in GitHub Desktop.
var above = function(limit){
return function(value){
return value > limit;
};
};
var isAbove10 = above(10);
console.log(isAbove10(5)); // false
console.log(isAbove10(8)); // false
console.log(isAbove10(12)); // true
console.log(isAbove10(20)); // true
console.log(isAbove10(25)); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment