class DatabaseArray - nsc-de/js-database GitHub Wiki
fields | functions |
---|---|
#data | #set() |
#length | #setDefault() |
#get() | |
#getNormal() | |
#update() | |
#contains() | |
#push() |
(get & set)
The data of the DatabaseArray
(get)
Returns the length of the array
Sets a value from the DatabaseArray
parameters
key the path to apply the value to
value the value to apply to the given path
returns the DatabaseArray itself, so you can chain operations like that
Sets a default value from the DatabaseArray
parameters
key the path to apply the value to
value the value to apply to the given path
returns the DatabaseArray itself, so you can chain operations like that
Gets a value from the DatabaseArray
parameters
key the path to apply the value to
returns the value of the key
Gets a value from the DatabaseArray normalizes it
parameters
key the path to apply the value to
returns the normalized value of the key
Upates a value from the DatabaseArray
parameters
key the path to apply the value to
update the funciton to update the value
returns the DatabaseArray itself, so you can chain operations like that
Checks if the DatabaseArray contains a value
parameters
key the path to apply the value to
returns does the array contains the value
Pushs a value into the DatabaseArray
parameters
...values the values to push into the array
returns the DatabaseArray itself, so you can chain operations like that