@code-o-mat/history-cache
Version:
A data object structure that logs all changes using the immutable library
20 lines (13 loc) • 902 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assertIsSearchTerm = void 0;
var _baseAssertions = require("@code-o-mat/globals/lib/assertions/base-assertions");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var assertIsSearchTerm = function assertIsSearchTerm(value) {
var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Invalid Search Term";
var ty = _typeof(value);
(0, _baseAssertions.assert)(ty === 'number' || ty === 'string' || ty === 'symbol', message);
};
exports.assertIsSearchTerm = assertIsSearchTerm;