.getKeys(key)

Description

GetKeys is a method that returns an array of keys from an array of objects

Parameters

GetKeys takes an optional parameter of keys to return

Usage On Arrays

arr = [{a:1},{a:2},{a:3}]
// setup the array

log arr.getKeys("a")
// returns [1,2,3]
// returns all keys

Last updated

Was this helpful?