{"version":"1.0","type":"rich","title":"JS Partials","description":"This example demonstrates partial function application in JavaScript, showing how functions can be pre-bound with arguments to create specialized callable functions. It defines two helper functions, `callFirst` and `callLast`, which use the native `Array.prototype.slice` method to manipulate arguments. The code creates a `greet` function that takes two parameters, then uses these helpers to generate `sayHelloTo` and `beGreetedBy`, which pre-fix either the first or last argument. The output shows two example invocations that produce greeting messages with the bound argument applied in the respective position.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7571492?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}