/**
* Object module.
* @namespace lib.object
* @author Taka Okunishi
*
*/
var prototype = require('./_prototype.js');
/**
* Define an object property getter to access prototype property.
* @private
*/
function getPrototypeProperty (key) {
return {
enumerable: true,
get: function () {
return prototype[key];
}
};
}
// Export prototype properties with lazy loading.
Object.defineProperties(exports, {
copy: getPrototypeProperty('copy'),
deepCopy: getPrototypeProperty('deepCopy'),
define: getPrototypeProperty('define'),
fallbackCopy: getPrototypeProperty('fallbackCopy')
});