Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function curry(func) {
- return function curried(...args) {
- if (args.length >= func.length) {
- return func.apply(this, args);
- } else {
- return function(...args2) {
- return curried.apply(this, args.concat(args2));
- }
- }
- };
- }
- function format_date(day, month , year){
- return day + "."+ month + "." + year;
- }
- var date = curry(format_date);
Add Comment
Please, Sign In to add comment