Skip to content

Instantly share code, notes, and snippets.

@marshallswain
Last active October 14, 2018 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallswain/9cef5ec5da9689b2c2e6bde0e554cfc9 to your computer and use it in GitHub Desktop.
Save marshallswain/9cef5ec5da9689b2c2e6bde0e554cfc9 to your computer and use it in GitHub Desktop.
mb object property accessor, formatted
const mb = (...p) => o => p.reduce((a, c) => Object(a)[c], o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment