/**
 * Export javascript style and css style vendor prefixes.
 * Based on "transform" support test.
 */

import isBrowser from 'is-browser'

let js = ''
let css = ''

// We should not do anything if required serverside.
if (isBrowser) {
  const jsCssMap = {
    Webkit: '-webkit-',
    Moz: '-moz-',
    // IE did it wrong again ...
    ms: '-ms-',
    O: '-o-'
  }

  // Order matters. We need to check Webkit the last one because
  // other vendors use to add Webkit prefixes to some properties
  const prefixes = ['Moz', 'ms', 'O', 'Webkit']

  const style = document.createElement('p').style
  const testProp = 'Transform'

  for (let i = 0; i < prefixes.length; i++) {
    const prefix = prefixes[i];
    if ((prefix + testProp) in style) {
      js = prefix
      css = jsCssMap[prefix]
      break
    }
  }
}

/**
 * Vendor prefix string for the current browser.
 *
 * @type {{js: String, css: String}}
 * @api public
 */
export default {js, css}

@@ -234,138 +234,8 @@
 ) %7B%0A
-  const jsCssMap = %7B%0A    Webkit: '-webkit-',%0A    Moz: '-moz-',%0A    // IE did it wrong again ...%0A    ms: '-ms-',%0A    O: '-o-'%0A  %7D%0A%0A
   //
@@ -372,48 +372,128 @@
 nst 
-prefixes = %5B'M
+jsCssMap = %7B%0A    Moz: '-m
 oz
+-
 ',
+%0A    // IE did it wrong again ...%0A    ms:
  '
+-
 ms
+-
 ',
- 'O', 'Webkit'%5D%0A
+%0A    O: '-o-',%0A    Webkit: '-webkit-'%0A  %7D
 %0A  c
@@ -582,78 +582,32 @@
 or (
-let i = 0; i %3C prefixes.length; i++) %7B%0A    const prefix = prefixes%5Bi%5D;
+const key in jsCssMap) %7B
 %0A   
@@ -612,22 +612,19 @@
    if ((
-prefix
+key
  + testP
@@ -651,22 +651,19 @@
    js = 
-prefix
+key
 %0A      c
@@ -676,22 +676,19 @@
 sCssMap%5B
-prefix
+key
 %5D%0A      

Use the original object instead of array