imports/vx/both/code/util.js
/**
     * Return the first property name of the supplied object.
     *
     * @param {object} object Object.
     * @return {string} First property name or undefined.
     */
Return the first property name of the supplied object.
@param {object} object Object.
@return {string} First property name or undefined.
Return the first property name of the supplied object . @param { object } object Object . @return { string } First property name or undefined .
firstProperty(object) {
        if (!object) {
            return
        }
        let keyArray = Object.keys(object)
        if (!keyArray || keyArray.length === 0) {
            return
        }
        return keyArray[0]
    }
firstProperty ( object ) { if ( ! object ) { return } let keyArray = Object . keys ( object ) if ( ! keyArray || keyArray . length === 0 ) { return } return keyArray [ 0 ] }
Return the first property name of the supplied object.
Return the first property name of the supplied object .