Skip to content

Function: joinModifiers() ​

ts
function joinModifiers(...chains): ModifiersChain;

Defined in: tiny/literals.ts:198

Concatenates chains — the branded stand-in for `${a}${b}`, which would widen back to string. Order is preserved, so this is how you append to a chain you already have.

Parameters ​

ParameterType
...chainsModifiersChain[]

Returns ​

ModifiersChain

See ​

https://uploadcare.com/docs/cdn-operations/

Example ​

ts
joinModifiers(parts.modifiers, modifiers('resize/300x', 'blur/10'))
// → '-/preview/-/resize/300x/-/blur/10/'