Register

Cite.util. Register

new Register(dataopt)

Source:
Parameters:
Name Type Attributes Default Description
data Object <optional>
{}

initial values

Methods

add()

Source:

delete(key) → {Register}

Source:
Parameters:
Name Type Description
key String
Returns:
Type:
Register

this

get(key) → {*}

Source:
Parameters:
Name Type Description
key String
Returns:
Type:
*

value

has(key) → {Boolean}

Source:
Parameters:
Name Type Description
key String
Returns:
Type:
Boolean

register has key

list() → {Array.<String>}

Source:
Returns:
Type:
Array.<String>

list of keys

set(key, value) → {Register}

Source:
Parameters:
Name Type Description
key String
value *
Returns:
Type:
Register

this