//https://stackoverflow.com/questions/23045652/object-comparing-check-if-an-object-contains-the-whole-other-object export function isContainedIn(smaller: any, larger: any) { if (typeof smaller != typeof larger) return false; if (Array.isArray(smaller) && Array.isArray(larger)) { // assuming same order at least for (var i=0, j=0, la=smaller.length, lb=larger.length; i