summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/validator/lib/isEmpty.js
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/addressbook/node_modules/validator/lib/isEmpty.js')
-rw-r--r--includes/external/addressbook/node_modules/validator/lib/isEmpty.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/includes/external/addressbook/node_modules/validator/lib/isEmpty.js b/includes/external/addressbook/node_modules/validator/lib/isEmpty.js
deleted file mode 100644
index 26766d5..0000000
--- a/includes/external/addressbook/node_modules/validator/lib/isEmpty.js
+++ /dev/null
@@ -1,25 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = isEmpty;
-
-var _assertString = _interopRequireDefault(require("./util/assertString"));
-
-var _merge = _interopRequireDefault(require("./util/merge"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var default_is_empty_options = {
- ignore_whitespace: false
-};
-
-function isEmpty(str, options) {
- (0, _assertString.default)(str);
- options = (0, _merge.default)(options, default_is_empty_options);
- return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
-}
-
-module.exports = exports.default;
-module.exports.default = exports.default; \ No newline at end of file