Created
December 22, 2015 04:55
-
-
Save koozdra/55cdb799c2c55cec12ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var positioned = ['x', 'y']; | |
| // an parameter object is full if the domain does not contain any falsies | |
| function isFull(object) { | |
| return _(object) | |
| .omit(_.identity) | |
| .keys() | |
| .value() | |
| .length; | |
| } | |
| function Circle() { | |
| var parameters = ['x', 'y', 'radius'] | |
| data = _.reduce(parameters, function(result, n) { | |
| result[n] = null | |
| return result; | |
| }, {}); | |
| return function() { | |
| } | |
| } | |
| var circle = Circle(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment