Function attributes()

← Back to Module core



Module core → attributes()

Description

Get the attributes of an object

attributes(obj)


Parameters


Return Value


Usage Example

a = {
    id: "A23",
    name: "Clara",
    age: 20,
    campus: "ITB"
}
 
b = attributes(a)
 
' b is:
' array(
'     [0] = "campus"
'     [1] = "age"
'     [2] = "name"
'     [3] = "id"
' )