new List()
- Source:
- core/list.js, line 12
Methods
-
add(instance) → {ListNode}
-
Add instance to list
Parameters:
Name Type Description instance
* - Source:
- core/list.js, line 27
Returns:
- Type
- ListNode
-
addHead(instance) → {ListNode}
-
Add instance to head
Parameters:
Name Type Description instance
* - Source:
- core/list.js, line 56
Returns:
- Type
- ListNode
-
forEach(callback, context, arg)
-
Execute callback for each node of the List
Parameters:
Name Type Description callback
function context
arg
- Source:
- core/list.js, line 138
-
length() → {number}
-
Length of the list
- Source:
- core/list.js, line 127
Returns:
- Type
- number
-
remove(instance) → {boolean}
-
Remove {ListNode} by instance
Parameters:
Name Type Description instance
* - Source:
- core/list.js, line 84
Returns:
- Type
- boolean