DefineList.prototype
A can-define/list/list constructor to add stream methods to.
new DefineList([items])
Creates a DefineList type instance
import DefineMap from "can-define/map/map";
import DefineList from "can-define/list/list";
const People = DefineList.extend( {
"#": {
type: {
first: "string",
last: "string"
}
}
} );
const people = new People( [
{ first: "John", last: "Gardner" },
{ first: "Justin", last: "Meyer" }
] );
Use
See: can-define/list/list and the related extend method.