(string) compound (delimiter)
Concatenate tokens (camelCase|StudlyCaps|snake_case).
Parameters:
name | type | default | caption |
---|---|---|---|
delimiter | string | '_' | 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"