Skip to content

Commit

Permalink
feat: add isNotNil
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Feb 15, 2017
1 parent 9321781 commit f49962a
Show file tree
Hide file tree
Showing 11 changed files with 682 additions and 536 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ This just means that our tests run on these versions.

- [0.0.1](https://char0n.github.io/ramda-adjunct/0.0.1)
- [0.1.0](https://char0n.github.io/ramda-adjunct/0.1.0)
- [0.2.0](https://char0n.github.io/ramda-adjunct/0.2.0)
- Latest: https://char0n.github.io/ramda-adjunct

## Development
Expand Down
47 changes: 41 additions & 6 deletions dist/RA.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __webpack_require__.p = "";

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ })
/************************************************************************/
/******/ ([
Expand Down Expand Up @@ -151,6 +151,39 @@ module.exports = equals(undefined);
"use strict";


var _require = __webpack_require__(0),
isNil = _require.isNil,
complement = _require.complement;

/**
* Checks if input `value` is complement of `null` or `undefined`
*
* @func isNotNil
* @memberOf RA
* @since v0.3.0
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {Boolean}
* @see {@link http://ramdajs.com/docs/#isNil|isNil}
* @example
*
* RA.isNotNil(null); //=> false
* RA.isNotNil(undefined); //=> false
* RA.isNotNil(0); //=> true
* RA.isNotNil([]); //=> true
*/


module.exports = complement(isNil);

/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(0),
complement = _require.complement;

Expand Down Expand Up @@ -178,7 +211,7 @@ var isNotNull = complement(isNull);
module.exports = isNotNull;

/***/ }),
/* 4 */
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -209,16 +242,17 @@ var isUndefined = __webpack_require__(2);
module.exports = complement(isUndefined);

/***/ }),
/* 5 */
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var isNotUndefined = __webpack_require__(4);
var isNotUndefined = __webpack_require__(5);
var isUndefined = __webpack_require__(2);
var isNull = __webpack_require__(1);
var isNotNull = __webpack_require__(3);
var isNotNull = __webpack_require__(4);
var isNotNil = __webpack_require__(3);

/**
* @namespace RA
Expand All @@ -227,7 +261,8 @@ module.exports = {
isNotUndefined: isNotUndefined,
isUndefined: isUndefined,
isNull: isNull,
isNotNull: isNotNull
isNotNull: isNotNull,
isNotNil: isNotNil
};

/***/ })
Expand Down
2 changes: 1 addition & 1 deletion dist/RA.node.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 41 additions & 6 deletions dist/RA.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __webpack_require__.p = "";

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ })
/************************************************************************/
/******/ ([
Expand Down Expand Up @@ -151,6 +151,39 @@ module.exports = equals(undefined);
"use strict";


var _require = __webpack_require__(0),
isNil = _require.isNil,
complement = _require.complement;

/**
* Checks if input `value` is complement of `null` or `undefined`
*
* @func isNotNil
* @memberOf RA
* @since v0.3.0
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {Boolean}
* @see {@link http://ramdajs.com/docs/#isNil|isNil}
* @example
*
* RA.isNotNil(null); //=> false
* RA.isNotNil(undefined); //=> false
* RA.isNotNil(0); //=> true
* RA.isNotNil([]); //=> true
*/


module.exports = complement(isNil);

/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(0),
complement = _require.complement;

Expand Down Expand Up @@ -178,7 +211,7 @@ var isNotNull = complement(isNull);
module.exports = isNotNull;

/***/ }),
/* 4 */
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -209,16 +242,17 @@ var isUndefined = __webpack_require__(2);
module.exports = complement(isUndefined);

/***/ }),
/* 5 */
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var isNotUndefined = __webpack_require__(4);
var isNotUndefined = __webpack_require__(5);
var isUndefined = __webpack_require__(2);
var isNull = __webpack_require__(1);
var isNotNull = __webpack_require__(3);
var isNotNull = __webpack_require__(4);
var isNotNil = __webpack_require__(3);

/**
* @namespace RA
Expand All @@ -227,7 +261,8 @@ module.exports = {
isNotUndefined: isNotUndefined,
isUndefined: isUndefined,
isNull: isNull,
isNotNull: isNotNull
isNotNull: isNotNull,
isNotNil: isNotNil
};

/***/ })
Expand Down
2 changes: 1 addition & 1 deletion dist/RA.web.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f49962a

Please sign in to comment.