Shahar,

Some of those functions are built-in to the JS runtime. You can refer
to https://developer.mozilla.org/en-US/docs/JavaScript/Reference for
information about built-in functions. Note that the runtime included
with Riak is Spidermonkey 1.8.1, so it will not include some of the
JavaScript 1.5 features.

On Thu, Sep 6, 2012 at 10:04 AM, shaharke <sha...@bigpandamedia.com> wrote:
> 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] <[hidden
> email]> wrote:
>>
>> On Thu, Sep 6, 2012 at 5:49 AM, shaharke <[hidden email]> 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://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.
>> NAML
>
>
>
> ________________________________
> View this message in context: Re: List of all available JS functions
>
> 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
>



-- 
Sean Cribbs <s...@basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to