UNPKG

@n3okill/utils

Version:
11 lines 292 B
import { toString } from "../string/toString"; /** * Check if argument is a sequence based on given regexp * @param arg * @param {RegExp} regex * @returns {boolean} */ export function isSequence(arg, regex) { return regex.test(toString(arg)); } //# sourceMappingURL=isSequence.js.map