Skip to content

dashCase

Transform a string to dash-case.

Usage

js
import { dashCase } from '@studiometa/js-toolkit/utils';

dashCase('Some String Content'); // some-string-content

Params

  • string (string): The string to transform.

Return value

  • string: The transformed string.

MIT Licensed