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';
var People = DefineList.extend([
'#': {
type: {
first: 'string',
last: 'string'
}
}
]);
var people = new People([
{ first: 'John', last: 'Gardner' },
{ first: 'Justin', last: 'Meyer' }
])
Use
See: can-define/list/list and the related extend method.