2 * object.pick <https://github.com/jonschlinkert/object.pick>
4 * Copyright (c) 2014-2015 Jon Schlinkert, contributors.
5 * Licensed under the MIT License
10 var isObject = require('isobject');
12 module.exports = function pick(obj, keys) {
13 if (!isObject(obj) && typeof obj !== 'function') {
18 if (typeof keys === 'string') {
20 res[keys] = obj[keys];
25 var len = keys.length;