Skip to content

Commit

Permalink
add the code
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Feb 1, 2017
1 parent 33ba997 commit ff209c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
@@ -0,0 +1 @@
module.exports = (object, defaultValue) => new Proxy(object, {get: (object, key) => typeof object[key] == 'undefined' ? defaultValue : object[key]})

0 comments on commit ff209c6

Please sign in to comment.