This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isAutoplaySupported = function (callback) { | |
var timeout; | |
var waitTime = 200; | |
var retries = 5; | |
var currentTry = 0; | |
var elem = document.createElement('video'); | |
var elemStyle = elem.style; | |
function testAutoplay(arg) { | |
currentTry++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Original author's work: @see https://gist.github.com/carymrobbins/7b8ed52cd6ea186dbdf8 | |
* - 2019-07-18 Added support for Option and Map types | |
* - 2019-11-25 Fixed Option types spacing | |
*/ | |
object ClassUtils { | |
/** | |
* Pretty prints a Scala value similar to its source represention. | |
* Particularly useful for case classes. |