code: function parseId(url) {
      if (is.empty(url)) {
          return null;
      }
  
      const regex = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
      return url.match(regex) ? RegExp.$2 : url;
  }
docs: Parse YouTube ID from URL