Both partialand functions of a higher order .compose
isUndefined will return a function that, when called, will call the original function passed with the original arguments, plus any new arguments passed during the call.
, apply , partial, , , apply , partial.
, compose , , ( , compose). compose func1(func2), isDefined.
EDIT:
, op, :
var isUndefined = partial(op["==="], undefined);
var isUndefined = partial(function(a, b){return a === b;}, undefined);
isUndefined , , , partial, undefined , , isUndefined ..
partial(function(a, b){return a === b;}, undefined )(argumentForisUndefined );
isDefined isUndefined , isUndefined.
var isDefined = compose(op["!"], isUndefined);
var isDefined = compose(function(a){return !a;}, isUndefined);
( )
var isDefined = compose(
function(a){return !a;},
partial(
function(b, c) {
return b === c;
},
undefined
)
)(argumentForisDefined );
, , , , undefined,
var isDefined = function (b) { return !undefined === b; }