Skip to content

Instantly share code, notes, and snippets.

View promiseinchains.js
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;
View msort.php
<?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)
You can’t perform that action at this time.