diff options
Diffstat (limited to 'node_modules/only/index.js')
| -rw-r--r-- | node_modules/only/index.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/node_modules/only/index.js b/node_modules/only/index.js deleted file mode 100644 index 1cbeda95..00000000 --- a/node_modules/only/index.js +++ /dev/null @@ -1,10 +0,0 @@ - -module.exports = function(obj, keys){ - obj = obj || {}; - if ('string' == typeof keys) keys = keys.split(/ +/); - return keys.reduce(function(ret, key){ - if (null == obj[key]) return ret; - ret[key] = obj[key]; - return ret; - }, {}); -}; |
