Skip to content

Instantly share code, notes, and snippets.

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;
@cusster
cusster / msort.php
Last active November 12, 2018 11:11
<?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)