The Cusp of Helix

Reference of Intact Case
[compound]

(string) compound (delimiter = '_')

Concatenate tokens (camelCase|StudlyCaps|snake_case).

Parameters:

nametypedefaultcaption
delimiterstring'_'Delimiter.

Returns:

  • (string) — Compound words.

Author:

  • StewEucen

Since:

  • Version 1.0.0

Examples:

['camel', 'Case'].compound() #=> "camelCase" ['Studly', 'Caps'].compound() #=> "StudlyCaps" ['XML', 'HTML', 'Request'].compound() #=> "XML_HTMLRequest" ['get', 'utc_', 'day'].compound() #=> "get_utc__day" ['', 'webkit', 'flex'].compound('-') #=> "-webkit-flex"