camelToSnake()
Given a camelCase string, returns a snake_case string.
Usage
import { camelToSnake } from 'string-factory';
camelToSnake(string);
Prop types
prop | type | required | default |
---|---|---|---|
string | String | yes | null |
Examples
camelToSnake(someFunctionName) // some_function_name
camelToSnake(anotherFunction123) // another_function123