Skip to content

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

Variable: concat

ts
const concat: ConcatDerivation;

Defined in: derivations.ts:30

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.