SHARE
TWEET

Untitled

a guest Jan 26th, 2019 369 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _ = new Proxy {},
  2.   get: (_, prop) ->
  3.     retrieve = (props...) ->
  4.       fn = (obj) ->
  5.         props.reduce (obj, prop) ->
  6.           obj[prop]
  7.         , obj
  8.  
  9.       new Proxy fn,
  10.         get: (_, prop) ->
  11.           retrieve(props..., prop)
  12.  
  13.     retrieve(prop)
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top