isSimpleValue

Determines the type of a value.

isSimpleValue(value) → returns boolean

isSimpleValue Argument Reference

value any
Required

Examples sample code invoking the isSimpleValue function

isSimpleValue(42)

Expected Result: true

isSimpleValue("Hello world")

Expected Result: true

So it can't a be simple value

isSimpleValue(structNew())

Expected Result: false

isSimpleValue(arrayNew(1))

Expected Result: false


Fork me on GitHub