git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

_basePick.js (528B)


      1 var basePickBy = require('./_basePickBy'),
      2     hasIn = require('./hasIn');
      3 
      4 /**
      5  * The base implementation of `_.pick` without support for individual
      6  * property identifiers.
      7  *
      8  * @private
      9  * @param {Object} object The source object.
     10  * @param {string[]} paths The property paths to pick.
     11  * @returns {Object} Returns the new object.
     12  */
     13 function basePick(object, paths) {
     14   object = Object(object);
     15   return basePickBy(object, paths, function(value, path) {
     16     return hasIn(object, path);
     17   });
     18 }
     19 
     20 module.exports = basePick;