const PropertyInterface = (function () { | |
return function (propertyName, propertyGroup) { | |
var interfaceFunction = { | |
_name: propertyName, | |
}; | |
function _propertyGroup(val) { | |
val = val === undefined ? 1 : val; | |
if (val <= 0) { | |
return interfaceFunction; | |
} | |
return propertyGroup(val - 1); | |
} | |
return _propertyGroup; | |
}; | |
}()); | |
export default PropertyInterface; |