code: function parseArguments(args) {
      const hasOptionsArg = args.length > 1;
  
      const defaultOptions = {
          stateKey: 'instances',
          instanceKey: 'id',
      };
  
      return {
          options: hasOptionsArg ? args[0] : defaultOptions,
          mutations: hasOptionsArg ? args[1] : args[0],
      };
  }
docs: parse arguments