Skip to content

Documentation / @warp-drive/utilities / derivations / concat

concat

A derivation for use by ReactiveResource that joins the given fields with the optional separator (or '' if no separator is provided).

Generally you should not need to import and use this function directly.

Example

ts
{
 *   name: 'fullName',
 *   kind: 'derived',
 *   type: 'concat',
 *   options: {
 *     fields: ['firstName', 'lastName'],
 *     separator: ' ',
 *   },
 * }

Released under the MIT License.