Skip to content

underscore

Преобразует строку в snake_case.

underscore

Сигнатура

typescript
function underscore(str: string): string

Примеры

typescript
import { underscore } from 'strio'

underscore('helloWorld')
// "hello_world"

underscore('HelloWorld')
// "hello_world"

Связанные функции

Смотрите также

Выпущено под лицензией MIT.