📅  最后修改于: 2022-03-11 15:04:06.558000             🧑  作者: Mango
function Identity(value) {
this.value = value;
}
Identity.prototype.bind = function(transform) {
return transform(this.value);
};
Identity.prototype.toString = function() {
return 'Identity(' + this.value + ')';
};