Module

State

Classes

State

Methods

# inner add(key, value)

Add a key, value pair
Parameters:
Name Type Description
key any Key of pair
value any Value of pair

View Source State.js, line 15

# inner get(key) → {any|null}

Get value based on value or null
Parameters:
Name Type Description
key any Key to check

View Source State.js, line 65

Value matching key or null
any | null

# inner has(key) → {boolean}

Check if key exists in Map
Parameters:
Name Type Description
key any Key to check

View Source State.js, line 54

If the State has a key
boolean

# inner remove(key) → {any|null}

Remove key from State
Parameters:
Name Type Description
key any Key to remove from State

View Source State.js, line 26

Returns the removed key or null
any | null

# inner size() → {number}

Return the size of the Map

View Source State.js, line 82

Size of Map
number

# inner update(key, value)

Update key, value pair
Parameters:
Name Type Description
key any Key to update
value any Value to update

View Source State.js, line 43