array-properties.js13 lines
mainRaw
function Component(props) {
  const a = [props.a, props.b, 'hello'];
  const x = a.length;
  const y = a.push;
  return {a, x, y, z: a.concat};
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{a: [1, 2], b: 2}],
  isComponent: false,
};
Loading syntax highlighting…