'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isEmpty = require('./isEmpty');

var _isEmpty2 = _interopRequireDefault(_isEmpty);

var _isCharEnglishPunctuation = require('./isCharEnglishPunctuation');

var _isCharEnglishPunctuation2 = _interopRequireDefault(_isCharEnglishPunctuation);

var _isCharJapanesePunctuation = require('./isCharJapanesePunctuation');

var _isCharJapanesePunctuation2 = _interopRequireDefault(_isCharJapanesePunctuation);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Tests a character. Returns true if the character is considered Japanese or English punctuation.
 * @param  {String} char character string to test
 * @return {Boolean}
 */
function isCharPunctuation() {
  var char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

  if ((0, _isEmpty2.default)(char)) return false;
  return (0, _isCharEnglishPunctuation2.default)(char) || (0, _isCharJapanesePunctuation2.default)(char);
}

exports.default = isCharPunctuation;