Read only
function transform(file, { j }) {
  return j(file.source)
    .find(j.Identifier)
    .forEach(path => {
      const id = path.node.name
          .split("")
          .reverse()
          .join("");

      j(path).replaceWith(
        j.identifier(id)
      );
    })
    .toSource();
}

export default transform;

let tips = [ 'hello', 'world'];
function printTips() {
  tips.forEach((tip, i) => console.log(tip));
}
loading
Read-only