import "core-js/modules/es6.regexp.to-string";
import { isNil } from '../predicate';
export var formatText = function formatText(value) {
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
      _ref$nil = _ref.nil,
      nil = _ref$nil === void 0 ? '' : _ref$nil;

  return isNil(value) ? nil : value.toString();
};