imports/vx/client/code/ux.js
/**
     * Add a specified selection to the top of a code array.
     *
     * @param {array} codeArray Traditional code array.
     * @param {string} code Code to add.
     * @param {string} localized Localization to add.
     * @return {array} New array with special selection added to top.
     */
Add a specified selection to the top of a code array.
@param {array} codeArray Traditional code array.
@param {string} code Code to add.
@param {string} localized Localization to add.
@return {array} New array with special selection added to top.
Add a specified selection to the top of a code array . @param { array } codeArray Traditional code array . @param { string } code Code to add . @param { string } localized Localization to add . @return { array } New array with special selection added to top .
addSelection(codeArray, code, localized) {
        const newArray = codeArray ? codeArray.slice() : []
        newArray.unshift( { code, localized } )
        return newArray
    }
addSelection ( codeArray , code , localized ) { const newArray = codeArray ? codeArray . slice ( ) : [ ] newArray . unshift ( { code , localized } ) return newArray }
Add a specified selection to the top of a code array.
Add a specified selection to the top of a code array .