UNPKG

479 BJavaScriptView Raw
1'use strict';
2var isEmpty = require('./empty'),
3 not = require('./not');
4
5/**
6 * Checks whether value is not empty.
7 *
8 * See [empty](#empty) for list of conditions that determine when a value is empty
9 *
10 * @function notEmpty
11 *
12 * @example
13 * var is = require('predicates');
14 *
15 * is.notEmpty([1]); // true
16 * is.notEmpty('value'); // true
17 * is.notEmpty([]); // false
18 * is.notEmpty(''); // false
19 * @param {*} value
20 * @returns {Boolean}
21 */
22module.exports = not(isEmpty);
\No newline at end of file