DefineMap.prototype
A can-define/map/map constructor to add stream methods to.
new DefineMap({props})
Creates a DefineMap type instance
import DefineMap from 'can-define/map/map';
var Person = DefineMap.extend({
first: 'string',
last: 'string',
fullName: {
get() {
return this.first + " " + this.last;
}
}
});
var john = new Person({
first: 'John',
last: 'Gardner'
});
Use
See: can-define/map/map and extend