The Cusp of Helix

Intact Case リファレンス
[compound]

(string) compound (delimiter)

複数の単語を連結して複合語を生成します。

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"