feat(striker-ui-api): add function to combine string parts into camelcase

main
Tsu-ba-me 2 years ago
parent 1665c7efec
commit b24021ebdc
  1. 4
      striker-ui-api/src/lib/camel.ts

@ -0,0 +1,4 @@
import { cap } from './cap';
export const camel = (...[head, ...rest]: string[]): string =>
rest.reduce<string>((previous, part) => `${previous}${cap(part)}`, head);
Loading…
Cancel
Save