SHARE
TWEET

private.js

a guest Oct 12th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const scope = new WeakMap();
  2.    
  3. export default function private(object) {
  4.   if (!scope.has(object))
  5.     scope.set(object, {});
  6.   return scope.get(object);
  7. }
RAW Paste Data
Top