editable: params => this.isEditable(applied)(params)
this editable get boolean value by calling iseditable function by passing applied as a paramaters. but params is get passed with it. what is the meaning of this code?
editable: params => this.isEditable(applied)(params)
this editable get boolean value by calling iseditable function by passing applied as a paramaters. but params is get passed with it. what is the meaning of this code?
Well, you only showed a small snippet, but I suspect it's something along the lines as
{// Some object is being constructed...
editable: params => this.isEditable(applied)(params)
}
Which is an ES6 "arrow function expression", which returns some other function, as the return value of calling isEditable.
//Some object is being constructed...
{
editable: function ( params ){
return this.isEditable(applied)(params)
},
// More properties being defined...
}
You can learn more about ES6 arrow function expressions here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions