Hi Brian,
Thanks for the quick reply. I might be missing here something, but I can't
see any of the collection extension functions in any of the js files you
mentioned. For example, where did you add the forEach method available on
all arrays?
Thanks,
Shahar
On Thu, Sep 6, 2012 at 2:59 PM, bryan-basho [via Riak Users] <
ml-node+s197444n4025174...@n3.nabble.com> wrote:
> On Thu, Sep 6, 2012 at 5:49 AM, shaharke <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=4025174&i=0>>
> wrote:
> > I've noticed that Riak extends the basic javascript functionality to add
> > syntactic-sugar functions on collections (e.g. forEach, filter, map
> etc.).
> > Is it possible the Riak simply uses the underscore.js library? If not,
> where
> > can I find a reference with all available functions?
>
> Hi, Shahar. The Javascript functions included with Riak are defined in
> a file named "mapred_builtins.js":
> https://github.com/basho/riak_kv/blob/master/priv/mapred_builtins.js
>
> The functions in json2.js from the erlang_js project are also
> included: https://github.com/basho/erlang_js/blob/master/priv/json2.js
>
> -Bryan
>
> _______________________________________________
> riak-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4025174&i=1>
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://riak-users.197444.n3.nabble.com/List-of-all-available-JS-functions-tp4025173p4025174.html
> To unsubscribe from List of all available JS functions, click
> here<http://riak-users.197444.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4025173&code=c2hhaGFyQGJpZ3BhbmRhbWVkaWEuY29tfDQwMjUxNzN8MTE0NzA4MTM5NA==>
> .
> NAML<http://riak-users.197444.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://riak-users.197444.n3.nabble.com/List-of-all-available-JS-functions-tp4025173p4025175.html
Sent from the Riak Users mailing list archive at Nabble.com.
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com