conversion-library / ListNode
Class: ListNode<T>
ListNode
version: v0.0.4+ts
class ListNode<T> {
value: T;
next: ListNode<T> | null;
constructor(value: T, next?: ListNode<T> | null);
}
Param
Enter value
Param
next ListNode
Example
ts
new ListNode({ name: 'aaa', age: 1 })
// { value: { name: 'aaa', age: 1 }, next: null }
Type Parameters
• T
Constructors
new ListNode()
ts
new ListNode<T>(value: T, next?: null | ListNode<T>): ListNode<T>
Parameters
• value: T
• next?: null
| ListNode
<T
>
Returns
ListNode
<T
>
Defined in
lib/data-structure/arrayAndListNode.ts:28
Properties
next
ts
next: null | ListNode<T>;
Defined in
lib/data-structure/arrayAndListNode.ts:27
value
ts
value: T;