Skip to content

Latest commit

 

History

History
110 lines (54 loc) · 1.27 KB

LinkedList.md

File metadata and controls

110 lines (54 loc) · 1.27 KB

LinkedList.LinkedList

add(item)

Add an item to the list

Arguments

  1. item (*): an item to add to the list

addAll(items)

Add multiple items to the list

Arguments

  1. items (*[]): an array of items to be added to the list

clear()

Remove all items from the list


constructor([items])

Arguments

  1. [items] (array): an array of items to add to the list

remove(item)

Remove an item from the list

Arguments

  1. item (*): the item to remove from the list

Returns

(boolean): true if the item was successfully removed, false if not


size

(number): The number of items in the list