Skip to content

Instantly share code, notes, and snippets.

View johncblandii's full-sized avatar
🚢
Ready to ship.

John C. Bland II johncblandii

🚢
Ready to ship.
View GitHub Profile
@jimjeffers
jimjeffers / Lookup.js
Last active July 22, 2017 15:47
Naive object look up.
const get = (target, path) => path.split(".").reduce((value, key) => value ? value[key] : value, target)
const a = {
b: {
c: {
d: "result!"
}
}
}