Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let prop = new Proxy({}, { get: (_, name) => (obj) => obj[name] });
let foods = [
{ name: 'hotdog', isHotdog: true },
{ name: 'pizza', isHotdog: false },
{ name: 'spaghetti', isHotdog: false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.