From 0789ed369b2e0c256a76adeda38bbdc31d956919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=B6lpin?= Date: Sun, 12 May 2019 22:28:14 +0200 Subject: [PATCH] WIP: Remove dependecy on complement --- source/isDefined.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/isDefined.js b/source/isDefined.js index 9058e6966..b0e2ba918 100644 --- a/source/isDefined.js +++ b/source/isDefined.js @@ -1,5 +1,5 @@ import isNil from './isNil'; -import complement from './complement'; +import _curry1 from './internal/_curry1'; /** @@ -7,7 +7,6 @@ import complement from './complement'; * * @func * @memberOf R - * @since v0.26. * @category Type * @sig * -> Boolean * @param {*} x The value to test. @@ -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;