function toStyleString(obj) {
    return Object.getOwnPropertyNames(obj)
        .map(k => `${k}:${obj[k]}`)
        .join(';');
    // let objStr = JSON.stringify(obj);
    // return objStr.substr(1, objStr.length - 2)
    //     .replace(/,/g, ';')
    //     .replace(/"/g, '');
}
/**
 * Given an object representing a key/value map of css properties, returns a valid css string
 * representing the object.
 * Example:
 * console.log(toStyleString({
 *     position: 'absolute',
 *     width: '100%',
 *     height: '100%',
 *     top: '0',
 *     left: '0',
 *     right: '0',
 *     bottom: '0'
 * }));
 * // position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0
 * @param {?} obj
 * @return {?}
 */
Given an object representing a key/value map of css properties, returns a valid css string
representing the object.
Given an object representing a key / value map of css properties returns a valid css string representing the object .
function toStyleString(obj) {
    return Object.getOwnPropertyNames(obj)
        .map(k => `${k}:${obj[k]}`)
        .join(';');
}
function toStyleString ( obj ) { return Object . getOwnPropertyNames ( obj ) . map ( k => ` ${ k } ${ obj [ k ] } ` ) . join ( ';' ) ; }
Given an object representing a key/value map of css properties, returns a valid css string
 representing the object.
Given an object representing a key / value map of css properties returns a valid css string representing the object .
// let objStr = JSON.stringify(obj); // return objStr.substr(1, objStr.length - 2) //     .replace(/,/g, ';') //     .replace(/"/g, '');