Skip to content

Instantly share code, notes, and snippets.

View Gr8Gatsby's full-sized avatar
🎯
Focusing

Kevin Hill Gr8Gatsby

🎯
Focusing
View GitHub Profile
@david-risney
david-risney / JavaScriptDataBreakpoint.js
Created June 15, 2016 17:45
JavaScript data breakpoint
function ValueBreakpoint(parent, fullNamePath) {
var name = fullNamePath[0];
var childNamePath = fullNamePath.slice(1);
var innerValue = parent[name];
var childBreakpoints = [];
function applyChildValueBreakpoints() {
if (childNamePath.length > 0 && innerValue) {
childBreakpoints.push(new ValueBreakpoint(innerValue, childNamePath));
}