Constructors
constructor
- new Attribute(_name: string, _ordered: boolean, _unique: boolean, _lower: number, _upper: number, _items?: T[]): Attribute
-
Parameters
-
_name: string
-
_ordered: boolean
-
_unique: boolean
-
_lower: number
-
_upper: number
-
Default value _items: T[] = []
Properties
Private _items
_items: T[]
Private _lower
_lower: number
Private _name
_name: string
Private _ordered
_ordered: boolean
Private _unique
_unique: boolean
Private _upper
_upper: number
Accessors
iterator
- get iterator(): IterableIterator<T>
-
Returns IterableIterator<T>
Methods
__@iterator
- __@iterator(): IterableIterator<T>
-
Returns IterableIterator<T>
append
-
Parameters
Returns boolean
filter
- filter(cb: function): Attribute<T>
-
Parameters
-
cb: function
-
- (item: T, index: number): boolean
-
Parameters
Returns boolean
Returns Attribute<T>
includes
- includes(item: T): boolean
-
Parameters
Returns boolean
map
- map<U>(cb: function): U[]
-
Type parameters
Parameters
-
cb: function
-
- (item: T, index: number): U
Returns U[]
remove
-
Parameters
Returns boolean
set
- set(value: T | undefined): boolean
-
Parameters
Returns boolean