Skip to content

The open alternative to Salesforce, designed for AI.

194 B
Raw Blame
// truncates to first word: FindOnePerson -> Find, AggregateCompanies -> Aggregate, ...
export const getGenericOperationName = (name?: string) => {
  return name?.match(/^[A-Z][a-z]*/)?.[0];
};