[][src]Function swc_ecma_transforms::compat::es3::property_literals

pub fn property_literals() -> impl Fold

babel: transform-property-literals

Input

var foo = {
  // changed
  "bar": function () {},
  "1": function () {},

  // not changed
  "default": 1,
  [a]: 2,
  foo: 1
};

Output

var foo = {
  bar: function () {},
  1: function () {},

  "default": 1,
  [a]: 2,
  foo: 1
};