@yookue/ts-lang-utils
    Preparing search index...

    Function isRegular

    • Returns whether the given object is a regex

      Parameters

      • object: any

        the object to check

      Returns boolean

      whether the given object is a regex

      David Hsing

      isRegular(/[0-9a-zA-Z]+/g);    // true
      isRegular('/[0-9a-zA-Z]+/g'); // false