PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
validator
/
lib
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; exports.default = isIn; var _assertString = require('./util/assertString'); var _assertString2 = _interopRequireDefault(_assertString); var _toString = require('./util/toString'); var _toString2 = _interopRequireDefault(_toString); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function isIn(str, options) { (0, _assertString2.default)(str); var i = void 0; if (Object.prototype.toString.call(options) === '[object Array]') { var array = []; for (i in options) { if ({}.hasOwnProperty.call(options, i)) { array[i] = (0, _toString2.default)(options[i]); } } return array.indexOf(str) >= 0; } else if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') { return options.hasOwnProperty(str); } else if (options && typeof options.indexOf === 'function') { return options.indexOf(str) >= 0; } return false; } module.exports = exports['default'];
[-] isBoolean.js
[edit]
[-] isHexColor.js
[edit]
[-] equals.js
[edit]
[-] isUppercase.js
[edit]
[-] toInt.js
[edit]
[-] toDate.js
[edit]
[-] isIn.js
[edit]
[-] isDivisibleBy.js
[edit]
[-] toBoolean.js
[edit]
[-] isHexadecimal.js
[edit]
[+]
..
[-] isMobilePhone.js
[edit]
[-] isMD5.js
[edit]
[-] stripLow.js
[edit]
[-] contains.js
[edit]
[-] blacklist.js
[edit]
[-] isJSON.js
[edit]
[-] isURL.js
[edit]
[-] toFloat.js
[edit]
[-] isNumeric.js
[edit]
[-] isVariableWidth.js
[edit]
[-] isUUID.js
[edit]
[-] isDate.js
[edit]
[-] unescape.js
[edit]
[-] isISRC.js
[edit]
[-] isInt.js
[edit]
[-] alpha.js
[edit]
[-] isISSN.js
[edit]
[-] rtrim.js
[edit]
[-] isSurrogatePair.js
[edit]
[-] isMongoId.js
[edit]
[-] isCreditCard.js
[edit]
[-] isFullWidth.js
[edit]
[-] isISO8601.js
[edit]
[-] isBase64.js
[edit]
[-] isHalfWidth.js
[edit]
[-] isByteLength.js
[edit]
[-] isDataURI.js
[edit]
[-] isAfter.js
[edit]
[-] isISIN.js
[edit]
[-] normalizeEmail.js
[edit]
[-] isAlpha.js
[edit]
[-] isBefore.js
[edit]
[+]
util
[-] isCurrency.js
[edit]
[-] isWhitelisted.js
[edit]
[-] isMACAddress.js
[edit]
[-] ltrim.js
[edit]
[-] isLength.js
[edit]
[-] whitelist.js
[edit]
[-] isDecimal.js
[edit]
[-] isMultibyte.js
[edit]
[-] matches.js
[edit]
[-] trim.js
[edit]
[-] isAlphanumeric.js
[edit]
[-] isAscii.js
[edit]
[-] isEmpty.js
[edit]
[-] escape.js
[edit]
[-] isEmail.js
[edit]
[-] isLowercase.js
[edit]
[-] isFloat.js
[edit]
[-] isISBN.js
[edit]
[-] isIP.js
[edit]
[-] isFQDN.js
[edit]