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";
const Person = DefineMap.extend( {
first: "string",
last: "string",
fullName: {
get() {
return this.first + " " + this.last;
}
}
} );
const john = new Person( {
first: "John",
last: "Gardner"
} );
Use
See: can-define/map/map and extend