UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

21 lines (18 loc) 528 B
var basePickBy = require('./_basePickBy'), hasIn = require('./hasIn'); /** * The base implementation of `_.pick` without support for individual * property identifiers. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object. */ function basePick(object, paths) { object = Object(object); return basePickBy(object, paths, function(value, path) { return hasIn(object, path); }); } module.exports = basePick;