I am trying to mocking mongodb map-reduce.
function some_function(){
....
call_some (some_object);
....
}
function call_some (some_object){
// In here,
// How could I use this keyword instead of some_object?
// some_object.something => this.something
}
in javascript or jquery
Call
call_someusingFunction‘scallmethod:Alternatively, if you don’t want to call it in a special way, try this: