public static JsNode Apply(this IMethod method, JsNode obj, object args) { return(method.IsStatic() ? method.JsFullName().Id().Apply(obj, args) : obj.Get(method.JsName()).Apply(obj, args)); }
public static JsNode Apply(this JsNode f, object obj, object args) { return(f.Get("apply").Call(obj, args)); }
public static JsNode Call <T>(this IMethod method, JsNode obj, params T[] args) { return(method.IsStatic() ? method.JsFullName().Id().Apply(obj, new JsArray(args.Cast <object>())) : obj.Get(method.JsName()).Call(obj, args)); }