Difference between revisions of "Z Object Functions"

From ZCubes Wiki
Jump to navigation Jump to search
Line 26: Line 26:
  
 
Other parameters similar to KEYS.
 
Other parameters similar to KEYS.
 +
 +
==OBJECTSTOARRAY(SomeArrayOfObjects)==
 +
 +
Converts an Array of Objects into the corresponding Array structure.
 +
 +
==ARRAYTOOBJECTS(SomeArray)==
 +
 +
Takes an array with defined headers to an Array of Objects. To get the headers in a simple array, use .toframe()

Revision as of 20:31, 2 June 2025

Z Object Related Functions

KEYS

KEYS(SomeObject,SomeFunction,ExtractAll,IncludeFunctions)

Extracts the keys of an object. Similar to Object.keys.

SomeFunction is applied, if provided to each of the values. ExtractAll indicates to include undefined values for keys. IncludeFunctions include values for keys that are functions in the extracts.

KEYTAGS

KEYTAGS(SomeObject,SomeFunction,ExtractAll,IncludeFunctions)

Same as KEYVALUES.

Extracts the key value pair of an object. Similar to Object.entries.

Other parameters similar to KEYS.

TAGS

TAGS(SomeObject,SomeFunction,ExtractAll,IncludeFunctions)

Extracts the values of an object. Similar to Object.entries with values alone.

Other parameters similar to KEYS.

OBJECTSTOARRAY(SomeArrayOfObjects)

Converts an Array of Objects into the corresponding Array structure.

ARRAYTOOBJECTS(SomeArray)

Takes an array with defined headers to an Array of Objects. To get the headers in a simple array, use .toframe()