Skip to content

Commit

Permalink
WIP: Remove dependecy on complement
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKoelpin committed May 12, 2019
1 parent a06c2a2 commit 0789ed3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/isDefined.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import isNil from './isNil';
import complement from './complement';
import _curry1 from './internal/_curry1';


/**
* Checks if the input value is not `null` and not `undefined`.
*
* @func
* @memberOf R
* @since v0.26.
* @category Type
* @sig * -> Boolean
* @param {*} x The value to test.
Expand All @@ -19,5 +18,5 @@ import complement from './complement';
* R.isDefined(0); //=> true
* R.isDefined([]); //=> true
*/
var isDefined = complement(isNil);
var isDefined = _curry1(function isDefined(x) { return !isNil(x) });
export default isDefined;

0 comments on commit 0789ed3

Please sign in to comment.