/*! * object.pick <https://github.com/jonschlinkert/object.pick> * * Copyright (c) 2014-2015 Jon Schlinkert, contributors. * Licensed under the MIT License */'use strict';varisObject=require('isobject');module.exports=functionpick(obj,keys){if(!isObject(obj)&&typeofobj!=='function'){return{};}varres={};if(typeofkeys==='string'){if(keysinobj){res[keys]=obj[keys];}returnres;}varlen=keys.length;varidx=-1;while(++idx<len){varkey=keys[idx];if(keyinobj){res[key]=obj[key];}}returnres;};