Concepts

Interface adapter

Try the free JavaScript compiler

Translate the public argument contract without spreading provider-specific details to callers.

Formal Syntax & Structure

javascript syntaxjavascript
const domainCall = input => providerCall(input.field)

Working Example

Example Snippetjavascript
(async () => {const legacy=(id,count)=>`${id}:${count}`;const submit=({sku,qty})=>legacy(sku,qty);console.log(submit({sku:"B",qty:0}));})()
JavaScript Reference