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
<?php | |
/** | |
* Get value at a given path expressed in dot notation. | |
* | |
* @param array $arr | |
* @param string $path | |
* @return mixed | |
*/ | |
function array_dot_notation(array $arr, string $path) |
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
function ChainedRequests(urls, headers) { | |
this.method = 'GET'; | |
this.urls = urls || []; | |
this.headers = headers || {}; | |
this.payload = null; | |
this.response = []; | |
this.retries = 1; | |
this.xhr = function(method, url, headers, payload) { | |
var self = this; |