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;
    
    
    Input
    let tips = [ 'hello', 'world'];
    function printTips() {
      tips.forEach((tip, i) => console.log(tip));
    }
    Output
    loading
    Read-only
    Open on CodeSandboxOpen Sandbox