(str: string)
| 29 | } |
| 30 | |
| 31 | const camelize = (str: string) => |
| 32 | str |
| 33 | .split(/[-_\s]+/) |
| 34 | .map( |
| 35 | (word, index) => |
| 36 | `${index === 0 ? word.charAt(0).toLowerCase() : word.charAt(0).toUpperCase()}${word.slice(1)}`, |
| 37 | ) |
| 38 | .join(""); |
| 39 | |
| 40 | /** |
| 41 | * Loads entries from a CSV file. The file must contain an array of objects that contain unique `id` fields, or an object with string keys. |
nothing calls this directly
no outgoing calls
no test coverage detected