isImageDataUrl(url) {
    // We could parse the mime type and scrutinize components to
    // ensure validity, but we live with simple string checks for now.
    return url.startsWith('data:image/') &&
        url.indexOf('/') < (url.length - 1);
  }
/**
   * @return {boolean} whether the given url is a data url with an image media
   *     type.
   * @private
   */
@return {boolean} whether the given url is a data url with an image media
type.
@private
@return { boolean } whether the given url is a data url with an image media type . @private
isImageDataUrl(url) {
    return url.startsWith('data:image/') &&
        url.indexOf('/') < (url.length - 1);
  }
isImageDataUrl ( url ) { return url . startsWith ( 'data:image/' ) && url . indexOf ( '/' ) < ( url . length - 1 ) ; }
@return {boolean} whether the given url is a data url with an image media
     type.
@return { boolean } whether the given url is a data url with an image media type .
// We could parse the mime type and scrutinize components to // ensure validity, but we live with simple string checks for now.