Skip to content

Instantly share code, notes, and snippets.

@koozdra
Created December 22, 2015 04:55
Show Gist options
  • Select an option

  • Save koozdra/55cdb799c2c55cec12ce to your computer and use it in GitHub Desktop.

Select an option

Save koozdra/55cdb799c2c55cec12ce to your computer and use it in GitHub Desktop.
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