Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

callable demo

node v10.24.1
version: 1.0.0
endpointsharetweet
var m = require("@lopatnov/callable"); var Callable = m.Callable, CallableByCallee = m.CallableByCallee, CallableByClosure = m.CallableByClosure, CallableByProxy = m.CallableByProxy; class ChildCallable extends Callable { _call(...args) { return `Hello ${args[0]}`; } } let x = new ChildCallable(); let xc = x("World"); console.log(xc);
Loading…

no comments

    sign in to comment