daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function resolve(path, obj=self, separator='.') {
  2.     var properties = Array.isArray(path) ? path : path.split(separator)
  3.     return properties.reduce((prev, curr) => prev && prev[curr], obj)
  4. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top